1.issue: 4955 INFO: Processing pre-safe import module hook win32comTraceback (most recent call last): File "<string>", line 2, in <module>ImportError: ...
分类:
编程语言 时间:
2017-05-28 10:57:44
阅读次数:
230
windows下利用scrapy(python2.7)写爬虫,运行 scrapy crawl dmoz 命令时提示:exceptions.ImportError: No module named win32api 插个话题,这里还需要注意的是你需要到你所创建的爬虫项目目录下运行以上命令,比如你创建了 ...
异常处理异常就是程序出现错误无法正常工作了,异常处理是通过一些方法对出现的错误进行捕捉,友好地显示出来或进行相应的处理,使得程序能够更长时间运行。1.异常种类常见的:SyntaxError语法错误IndentationError缩进错误TypeError对象类型与要求不符合ImportError模块或包导..
分类:
编程语言 时间:
2017-05-24 22:31:17
阅读次数:
160
解决bs4在Python 3.5下出现“ImportError: cannot import name 'HTMLParseError'”错误 分类:Python (4251) (3) 分类:Python (4251) (3) 升级了Python3.5之后,我使用BeautifulSoup4时候出现 ...
分类:
其他好文 时间:
2017-05-20 11:09:29
阅读次数:
224
>>> import MySQLdbTraceback (most recent call last): File "<stdin>", line 1, in <module> File "build/bdist.linux-x86_64/egg/MySQLdb/__init__.py", line ...
分类:
数据库 时间:
2017-05-15 18:22:09
阅读次数:
321
ImportError: /lib64/libc.so.6: version `GLIBC_2.15' not found yum install gccwget http://ftp.gnu.org/pub/gnu/glibc/glibc-2.17.tar.xzxz -d glibc-2.17.t ...
分类:
其他好文 时间:
2017-05-06 00:51:56
阅读次数:
166
在http://chenx1242.blog.51cto.com/10430133/1884415里写了一个监控mq的脚本,把这个脚本加入crontab里进行时刻监控,于是#crontab-e,添加语句:*****cd/目录&&pythonmq脚本名.py>/root/mq.log2>&1将执行的结果发送到/root/mq.log里,打开一看里面出现了这..
分类:
编程语言 时间:
2017-05-05 23:21:48
阅读次数:
645
yum安装readline、readline-devel #yum install -y readline-devel 下载安装setuptools #wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11 ...
分类:
编程语言 时间:
2017-05-04 19:58:34
阅读次数:
1134
报错:ImportError:Nomodulenamedbs4我的Python版本python--versionpython2.7.5按照网上方法尝试安装BeautifulSoup无果,BeautifulSoup据说能在python2的版本很好兼容,在python3版本兼容不是太好。yuminstallBeautifulSoup(不可行)yuminstallbs4(不可行)正确解决方法yumins..
分类:
其他好文 时间:
2017-05-03 19:08:34
阅读次数:
124
异常处理: 常用异常: AttributeError 试图访问一个对象没有的树形,比如foo.x,但是foo没有属性xIOError 输入/输出异常;基本上是无法打开文件ImportError 无法引入模块或包;基本上是路径问题或名称错误IndentationError 语法错误(的子类) ;代码没 ...
分类:
其他好文 时间:
2017-05-02 19:36:35
阅读次数:
148