pip源使用國內鏡像


臨時使用

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package

注意,simple 不能少, 是 https 而不是 http
設為默認
升級 pip 到最新的版本 (>=10.0.0) 后進行配置:

pip install pip -U
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/

如果您到 pip 默認源的網絡連接較差,臨時使用本鏡像站來升級 pip:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U

阿里雲 https://mirrors.aliyun.com/pypi/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清華大學 https://pypi.tuna.tsinghua.edu.cn/simple/
中國科學技術大學 http://pypi.mirrors.ustc.edu.cn/simple

清華大學pypi鏡像使用幫助:https://mirrors.tuna.tsinghua.edu.cn/help/pypi/


免責聲明!

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



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