Windows pip修改源

        摘自:https://blog.csdn.net/chenghuikai/article/details/55258957
        摘自:https://blog.csdn.net/artprog/article/details/75632723
       阿里雲 http://mirrors.aliyun.com/pypi/simple/ 
  中國科技大學 https://pypi.mirrors.ustc.edu.cn/simple/ 
  豆瓣(douban) http://pypi.douban.com/simple/ 
  清華大學 https://pypi.tuna.tsinghua.edu.cn/simple/ 
  中國科學技術大學 http://pypi.mirrors.ustc.edu.cn/simple/
  1. 打開appdata文件夾,在資源管理器的地址欄輸入%appdata%後回車:
    這裏寫圖片描述
  2. 新建一個pip文件夾,在pip文件夾裏面新建一個配置文件pip.ini
    這裏寫圖片描述
  3. 在配置文件中輸入如下內容後保存即可:
[global]
timeout = 6000
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host = pypi.tuna.tsinghua.edu.cn
  • 1
  • 2
  • 3
  • 4

再次使用pip,即會使用新源。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章