亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

無法使用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 關注
  • 572 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號