pip使用

代理

使用window自帶的文本編輯器編輯配置文件

pip config --editor C:\WINDOWS\system32\notepad.exe edit

內容如下

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
proxy     = http://XXXX.com:port

index-url是國內清華鏡像源
proxy 代理,按照網絡實際配置修改即可

pip config [] list
pip config [] [–editor ] edit
pip config [] get name
pip config [] set name value
pip config [] unset name

  • pip版本
    使用命令查詢
pip -V

文中使用的是pip 19.3.1(使用conda 安裝)

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