
答疑解惑
tymatlab
这个作者很懒,什么都没留下…
展开
-
路由器获取不到动态ip地址
问题:解决:动态IP获取不到的设置方法如下:(1)、路由器上选择“动态IP”上网路由器上选择动态IP上网(2)、路由器上克隆MAC地址,具体操作步骤如下图所示路由器上克隆MAC地址(3)、修改路由器LAN口IP地址,点击“网络参数”——>“LAN口设置”——>把“IP地址”修改为:192.168.8.1,然后“保存”。修改路由器LAN口IP地址为:192.168.8.1温馨提示:修改路由器LAN口IP地址后,路由器会提示重启,重启完成之后,需要在浏览器中输入:192.16原创 2022-02-11 14:27:06 · 7745 阅读 · 2 评论 -
“'cookies.txt' does not look like a Set-Cookie3 (LWP) format file”和“invalid Netscape format cookies”
如果遇到 “’cookies.txt’ does not look like a Set-Cookie3 (LWP) format file” 或 “invalid Netscape format cookies” 的问题, 那么,原因是cookies.txt文件的内容格式不对!不知道怎么修改,怎么办呢? 办法:把 CookieJar自己cookie.save()保存下来的文件,用not原创 2017-12-04 15:04:43 · 4577 阅读 · 0 评论 -
brew info python
使用brew安装python前执行如下命令,可以获取很多信息:brew info python原创 2017-11-24 17:30:06 · 669 阅读 · 0 评论 -
Mac “'chromedriver' executable needs to be in PATH”
安装seleniumpip install seleniumMac 下使用selenium打开一个空的浏览器窗口:from selenium import webdriverdriver = webdriver.Chrome()报错:'chromedriver' executable needs to be in PATH解决方法一:直接下载chromedriver并添加路径1.下载chromed原创 2017-11-27 22:06:19 · 17055 阅读 · 0 评论 -
Cannot connect to the Docker daemon
安装docker:brew install docker运行:docker run -d -p 80:80 --name webserver nginx报错:docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.原因:没有安装或打开Docker原创 2017-12-07 10:12:17 · 3717 阅读 · 0 评论 -
“'WebElement' object is not iterable”
问题代码:# -*- coding: UTF-8 -*-from selenium import webdriverdef main(): url = 'http://example.webscraping.com/places/default/search' driver = webdriver.Chrome() driver.get(url) driver.f原创 2017-11-28 13:01:02 · 12262 阅读 · 2 评论 -
“+[SomeClass initialize] may have been in progress in another thread when fork() was called”
python multiprocessing程序运行时,报错:objc[2483]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called.objc[2483]: +[__NSPlaceholderDate initialize] may have b原创 2017-12-07 17:26:28 · 3820 阅读 · 1 评论 -
pip 批量安装和卸载package
备注:需要卸载的包可从。将需要安装的包保存在。将需要卸载的包保存在。原创 2017-12-07 10:49:38 · 36677 阅读 · 1 评论 -
matplotlib画图标签显示中文问题
Mac下的解决方法Python3 添加SimHei字体(simhei.ttf文件)到 /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/ 中; 下载地址:黑体字体simhei.ttf删除~/.matplotlib/下的所有缓存原创 2018-01-08 18:48:01 · 2173 阅读 · 0 评论 -
ImportError: DLL load failed: 找不到指定的模块
莫名其妙报这个错,有可能是python2和3共存引起的。废话少说,直接上解决办法: 安装 Visual C++ Redistributable for Visual Studio 2015 网址:https://www.microsoft.com/en-us/download/details.aspx?id=53587...原创 2018-06-04 16:29:51 · 2408 阅读 · 0 评论 -
windows python2 + python3
List Info Windows 7 64位 python3 3.6 python2 2.7.14电脑里已经装了 python3,还需要装 python2 怎么办?怎样做到互不干扰? python 安装路径 python.exe路径 python3 D:\Program Files\Python36...原创 2018-05-30 15:59:25 · 294 阅读 · 0 评论 -
Mac 安装PyQt5
PyQt5官方安装教程指出2种安装方法:Installing from WheelsBuilding and Installing from Source网上搜罗的大多是按照第二种方法安装的,本文采用第一种方法更为简便省心,这种方法Only Python v3.5 and later is supported废话不多说,开始Mac 安装PyQt5第一步:安装python3$ brew inst原创 2017-11-24 16:11:04 · 11470 阅读 · 2 评论 -
Mac 安装Qt
1.安装Qtbrew install qt2.配置Qt环境变量echo 'export PATH="/usr/local/opt/qt/bin:$PATH"' >> ~/.bash_profilesource ~/.bash_profile3.查看Qt版本qmake -v至此,Qt安装完成!附图: 说明: 1. echo用法 echo命令 作用 echo >> 追加 echo原创 2017-11-24 13:20:05 · 6586 阅读 · 0 评论 -
'block' tag with name 'content' appears more than once
【错误】:’block’ tag with name ‘content’ appears more than once 【原因】:html文件中block content出现多次例如我的文件: index.html...<!--{% block content %}{% endblock content %}-->...{% block content %}{% endblock cont原创 2017-10-25 22:38:34 · 4804 阅读 · 1 评论 -
Mac “'geckodriver' executable needs to be in PATH”
Mac 下使用selenium打开一个空的浏览器窗口:from selenium import webdriverdriver = webdriver.Firefox()python报错:'geckodriver' executable needs to be in PATH解决1.brew安装geckodriver$ brew install geckodriver2.安装完成后,再次运行:fr原创 2017-11-28 20:52:13 · 3026 阅读 · 0 评论 -
设置Mac的root密码
bash输入:sudo passwd root输入当前登录用户密码输入要设置的root密码再次输入要设置的root密码此时,root密码设置成功从当前用户切换为root用户:su - root原创 2017-11-15 10:38:51 · 6109 阅读 · 0 评论 -
UnboundLocalError: local variable 'c' referenced before assignment
问题代码:def outer(): c = 0 def inner(): c += 1 print 'inner' print c print 'outer' return inner()outer()报错:UnboundLocalError: local variable 'c' referenced before a原创 2017-11-15 23:29:56 · 7553 阅读 · 1 评论 -
Mac 删除/卸载 自己安装的python
官网pkg安装的python版本第一步:删除框架sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7第二步:删除应用目录sudo rm -rf "/Applications/Python 2.7"第三步:删除指向python的链接cd /usr/local/bin/ls -l /usr/local/bin | grep '/Lib原创 2017-11-22 21:42:13 · 45305 阅读 · 3 评论 -
brew link python3出错
brew安装Python3时出现的问题:$ brew install python3Warning: python3 3.6.3 is already installed, it's just not linked.You can use `brew link python3` to link this version.$ brew link python3Linking /usr/loca原创 2017-11-23 00:29:17 · 13491 阅读 · 2 评论 -
brew link sip出错
brew安装sip时出现的问题:$ brew install sipError: The `brew link` step did not complete successfullyThe formula built, but is not symlinked into /usr/localCould not symlink include/sip.h/usr/local/include i原创 2017-11-23 00:45:19 · 1962 阅读 · 0 评论 -
Mac 创建指定版本的python虚拟环境
目前条件: python版本 安装情况 2.7.10 系统自带 2.7.14 brew安装 3.6.3 brew安装创建虚拟环境 python版本 创建虚拟环境命令 2.7.10 $ virtualenv venv 2.7.14 $ virtualenv venv --python=python2.7 3.6.3 $ virtualenv原创 2017-11-23 14:07:56 · 5832 阅读 · 1 评论 -
退出vim常用方法
退出vim常用方法: 退出vim 方法 只读退出 按esc,输入冒号,输入q,回车 不保存退出 按esc,输入冒号,输入q!,回车 保存退出 按esc,输入冒号,输入x,回车保存退出 最快捷的方法: 按esc,按shift+zz,或 按esc,按ZZ进入vim后,按i才能进行编辑原创 2017-11-23 19:40:20 · 1109 阅读 · 0 评论 -
Mac 安装和使用MongoDB
尝试一:手动命令安装按照官网https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/说明,手动命令安装1.下载所需版本的MongoDB的二进制文件curl -O https://fastdl.mongodb.org/osx-ssl/mongodb-osx-ssl-x86_64-3.4.10.tgz2.解压tar -zxvf m原创 2017-11-14 16:43:35 · 15472 阅读 · 0 评论 -
You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.
【问题】Heroku部署报错:remote: django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.原创 2017-10-30 11:44:51 · 3649 阅读 · 0 评论