Python:Windows下更改Python源至清華鏡像源


1)臨時使用鏡像源下載Python包:

以numpy為例:

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

其他鏡像源地址:

阿里雲:http://mirrors.aliyun.com/pypi/simple/
豆瓣:http://pypi.douban.com/simple/


2)永久更改鏡像源

在  “C:\Users\用戶名”  文件夾下,添加pip文件夾,文件夾內新建pip.ini文件,內容為:

[global]

index-url = https://pypi.tuna.tsinghua.edu.cn/simple

 


免責聲明!

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



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