更新pip源

1 . 可以直接在pip时加入参数 
比如:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple mysqldb

 

 

2 . 修改默认设置 
在根目录下创建.pip目录,创建pip.conf,并写入

[global]

index-url = https://pypi.douban.com/simple

[install]

trusted-host=pypi.douban.com

 

相关文章:

  • 2021-11-22
  • 2022-12-23
  • 2021-07-23
  • 2021-06-12
  • 2021-05-22
  • 2022-12-23
  • 2021-12-31
  • 2021-12-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案