python pip 国内源、http代理设置

好记性不如乱笔头,记下来总是好的。。。
回复
BG6RSH
帖子: 132
注册时间: 周日 6月 23, 2019 12:00 pm

python pip 国内源、http代理设置

帖子 BG6RSH »

windows 文件位置(以下三个均可)
C:\ProgramData\pip\pip.ini(全局)
C:\Users\YOURUSERNAME\pip\pip.ini(单个用户配置)
C:\Users\YOURUSERNAME\AppData\Roaming\pip\pip.ini(单个用户配置)

pip.conf文件位置(Linux)
~/.pip/pip.conf
  1. [global]
  2. index-url=https://pypi.tuna.tsinghua.edu.cn/simple
  3. proxy=http://d45623:zaq1XSW2@172.16.144.232:9128
  4. [install]
  5. trusted-host=https://pypi.tuna.tsinghua.edu.cn
回复