ubuntu14.04 安装scrapy 失败
错误信息如下:
Downloading cryptography-2.1.4.tar.gz (441kB): 441kB downloaded Running setup.py (path:/tmp/pip_build_root/cryptography/setup.py) egg_info for package cryptography
error in cryptography setup command: Invalid environment marker: python_version < '3'
Complete output from command python setup.py egg_info:
error in cryptography setup command: Invalid environment marker: python_version < '3'
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/cryptography
Storing debug log for failure in /root/.pip/pip.log
我的python版本是python3.4呀
网上搜到的答案都试过了,还是不行,请高人指点
回答:
解决了,感谢楼上两位大侠提供的思路
我把/usr/local/lib/python2.7/dist-packages目录下的setuptools*文件全部删除,然后控制台输入
wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python
千万不要直接
pip install setuptools
这样默认安装的是最新版本,不支持2.*,然后运行pip安装啥都不行了
最后 pip install scrapy,成功!
回答:
sudo pip3 install scrapy
回答:
试试升级
pip install --upgrade setuptools
以上是 ubuntu14.04 安装scrapy 失败 的全部内容, 来源链接: utcz.com/a/156984.html