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.

Revisions

  1. crazcdll revised this gist Jan 16, 2018. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions pip.sh
    Original file line number Diff line number Diff line change
    @@ -4,5 +4,12 @@ vi ~/.pip/pip.conf
    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 这个目录,可能需要先创建
  2. crazcdll revised this gist Nov 22, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pip.sh
    Original file line number Diff line number Diff line change
    @@ -5,4 +5,4 @@ index-url = http://pypi.douban.com/simple
    trusted-host = pypi.douban.com

    // 这个设置的单个账户的,换了账户需要重新设置。
    // 有可能没有 `.pip` 这个目录,可能需要先创建
    // 有可能没有 .pip 这个目录,可能需要先创建
  3. crazcdll created this gist Nov 22, 2017.
    8 changes: 8 additions & 0 deletions pip.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    vi ~/.pip/pip.conf

    [global]
    index-url = http://pypi.douban.com/simple
    trusted-host = pypi.douban.com

    // 这个设置的单个账户的,换了账户需要重新设置。
    // 有可能没有 `.pip` 这个目录,可能需要先创建