pip 安裝模塊失敗問題


問題1:

ERROR: Could not find a version that satisfies the requirement xlwt (from vers

ions: none)
ERROR: No matching distribution found for xlwt

原因:網絡問題或者是pip版本需要更新

pip升級:python -m pip install --upgrade pip

網絡問題更換金鏡像源:pip install https://pypi.tuna.tsinghua.edu.cn/simple 模塊名

按照上述操作后,出現了問題2

報錯: ERROR: Cannot unpack file c:\users\admini~1\appdata\local\temp\pip-unpack-uwt0

as\simple (downloaded from c:\users\admini~1\appdata\local\temp\pip-req-build-7m

zbzm, content-type: text/html; charset=utf-8); cannot detect archive format

ERROR: Cannot determine archive format of c:\users\admini~1\appdata\local\temp\p

ip-req-build-7mzbzm
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn 模塊名

原始解決方案網站:https://blog.csdn.net/cn_1937/article/details/81449484
————————————————
版權聲明:本文為CSDN博主「步履蹣跚的猴子」的原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/xy20110803124/article/details/91363215


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM