为了账号安全,请及时绑定邮箱和手机立即绑定

无法使用PIP和setup.py安装Python密码术软件包

无法使用PIP和setup.py安装Python密码术软件包

潇潇雨雨 2019-11-05 10:58:05
当我尝试通过安装Python 加密程序包pip install cryptography或通过从其站点下载该程序包并运行时python setup.py,出现以下错误:D:\Anaconda\Scripts\pip-script.py run on 02/27/14 16:13:17Downloading/unpacking cryptography  Getting page https://pypi.python.org/simple/cryptography/  URLs to search for versions for cryptography:  * https://pypi.python.org/simple/cryptography/  Analyzing links from page https://pypi.python.org/simple/cryptography/    Skipping https://pypi.python.org/packages/cp26/c/cryptography/cryptography-0.2-cp26-none-win32.whl#md5=13e5c4b19520e7dc6f07c6502b3f74e2 (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python    Skipping https://pypi.python.org/packages/cp26/c/cryptography/cryptography-0.2.1-cp26-none-win32.whl#md5=00e733648ee5cdb9e58876238b1328f8 (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python    Skipping https://pypi.python.org/packages/cp27/c/cryptography/cryptography-0.2-cp27-none-win32.whl#md5=013ccafa6a5a3ea92c73f2c1c4879406 (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python    Skipping https://pypi.python.org/packages/cp27/c/cryptography/cryptography-0.2.1-cp27-none-win32.whl#md5=127d6a5dc687250721f892d55720a06c (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python    Skipping https://pypi.python.org/packages/cp32/c/cryptography/cryptography-0.2-cp32-none-win32.whl#md5=051424a36e91039807b72f112333ded3 (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this Python    Skipping https://pypi.python.org/packages/cp32/c/cryptography/cryptography-0.2.1-cp32-none-win32.whl#md5=53f6f57db8e952d64283baaa14cbde3d (from https://pypi.python.org/simple/cryptography/) because it is not compatible with this 我发现了其他egg_info错误帖子(此处和此处),但是那里提供的解决方案无法解决我的问题。另外,我能够通过PIP安装其他软件包。
查看完整描述

3 回答

?
Helenr

TA贡献1780条经验 获得超4个赞

对于那些运行OS X的人来说,这对我有用:


brew install openssl

env ARCHFLAGS="-arch x86_64" LDFLAGS="-L/usr/local/opt/openssl/lib" CFLAGS="-I/usr/local/opt/openssl/include"

pip install cryptography

(运行10.9小牛)


您可能还想根据以下注释尝试将flags和pip命令合并到以下内容:


brew install openssl

env ARCHFLAGS="-arch x86_64" LDFLAGS="-L/usr/local/opt/openssl/lib" CFLAGS="-I/usr/local/opt/openssl/include" pip install cryptography


查看完整回答
反对 回复 2019-11-05
  • 3 回答
  • 0 关注
  • 543 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信