Skip to content

Instantly share code, notes, and snippets.

@crazcdll
Last active January 16, 2018 09:48
Show Gist options
  • Select an option

  • Save crazcdll/7b82d93cb142d39350eb8ce9e56c0398 to your computer and use it in GitHub Desktop.

Select an option

Save crazcdll/7b82d93cb142d39350eb8ce9e56c0398 to your computer and use it in GitHub Desktop.
pip 换源
vi ~/.pip/pip.conf
[global]
index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com
[global]
index-url = http://mirrors.aliyun.com/pypi/simple
trusted-host = mirrors.aliyun.com
// 阿里云的源貌似更新一些
// 这个设置的单个账户的,换了账户需要重新设置。
// 有可能没有 .pip 这个目录,可能需要先创建
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment