分页: 1 / 1

python pip 国内源、http代理设置

发表于 : 周二 5月 28, 2024 2:08 pm
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