我尝试在另一台服务器上安装scrapy。
当我运行pip install scrapy
时:
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 2.7.6
我做了
sudo apt-get install python-dev python-pip libxml2-dev libxslt1-dev zlib1g-dev libffi-dev libssl-dev
和
sudo apt-get install python-dev python-pip libxml2-dev libxslt1-dev zlib1g-dev libffi-dev libssl-dev
我之前也做了sudo apt-get update
答案 0 :(得分:3)
在debian 8上也是如此。您可以将cryptography
库固定在版本2.0.3
上,然后重试。
pip install cryptography==2.0.3
答案 1 :(得分:1)
我刚遇到同样的问题并通过以下方式解决了这个问题:
pip install --upgrade setuptools pip
显然是加密包的the default version of setuptools and pip on 14.04 is insufficient。