1.运行一个 python 文件报错,如下:ImportError: cannot import name xmlrpc_client
2.按照“ http://stackoverflow.com/questions/30964836/scrapy-throws-importerror-cannot-import-name-xmlrpc-client ” 来解决,爆如下错误 [ rm: /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info: Operation not permitted rm:/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six.py: Operation not permitted rm:/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six.pyc: Operation not permitted ]
1
engHacker 2017-02-17 12:53:50 +08:00 via iPhone
pip install --ignore-installed six
不行就 sudo -H pip install --ignore-installed six |
2
lisir OP 这个试过了,是安装“ six-1.10.0 ”。
解决不了问题。 |
4
naomhan 2017-02-17 17:20:04 +08:00
Operation not permitted
|
5
ty89 2017-02-17 17:56:42 +08:00
rm 的时候你少了 sudo 吧
|
6
DuckJK 2017-02-17 18:05:12 +08:00
试试 virtualenv ,从头安装依赖包。
|