使用pip命令可能遇到的報錯


1、使用pip安裝包失敗,報錯:
Could not fetch URL https://pypi.python.org/simple/mitmproxy/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645) - skipping
  Could not find a version that satisfies the requirement mitmproxy (from versions: )
No matching distribution found for mitmproxy
可以通過國內鏡像安裝:pip install 包名-i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
--trusted-host pypi.douban.com 這是為了獲得ssl證書的認證
 
2、使用pip安裝包失敗,報錯 error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
 
3、python3.7版本,pip版本太老,pip升級命令:
pip3 install --upgrade pip --trusted-host pypi.org --trusted-host files.pythonhosted.org
 
4、使用pip install XX出現錯誤consider using the '--user' option or check the permissions
糾正方法:pip install --user XX


免責聲明!

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



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