代理
- pip
參考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的使用)
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 安裝)