- 配置文件

mkdir -p ~/.pip
vim ~/.pip/pip.conf

[global]
index-url = https://pypi.doubanio.com/simple
trusted-host = pypi.doubanio.com

- 命令行选项

使用 pip 命令安装扩展包时指定源:

pip install SQLAlchemy -i https://pypi.doubanio.com/simple

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-15
  • 2022-12-23
  • 2021-12-26
  • 2021-10-26
猜你喜欢
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
  • 2021-11-06
  • 2021-10-10
  • 2021-08-09
相关资源
相似解决方案