conda中安裝pytorch是總是超時,通過換源解決


1、在C:\Users\“用戶名”\AppData\Roaming中創建文件夾pip

 

 2、在pip文件夾中創建文件pip.ini

 

 3、在pip.ini中輸入以下內容,將源換為清華源

[global]
timeout = 60000
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
use-mirrors = true
mirrors = https://pypi.tuna.tsinghua.edu.cn

4、最后安裝pytorch大功告成!

 


免責聲明!

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



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