码迷,mamicode.com
首页 > 其他好文 > 详细

配置当前用户使用豆瓣pip源

时间:2016-06-08 19:09:45      阅读:607      评论:0      收藏:0      [点我收藏+]

标签:

配置当前用户使用豆瓣pip源

 
  1. mkdir ~/.pip/
  2. cat ~/.pip/pip.conf
  3. 一些可选的参数

 

  • On Unix the default configuration file is: $HOME/.config/pip/pip.conf which respects the XDG_CONFIG_HOME environment variable.
  • On Mac OS X the configuration file is $HOME/Library/Application Support/pip/pip.conf.
  • On Windows the configuration file is %APPDATA%\pip\pip.ini.

There are also a legacy per-user configuration file which is also respected, these are located at:

  • On Unix and Mac OS X the configuration file is: $HOME/.pip/pip.conf
  • On Windows the configuration file is: %HOME%\pip\pip.ini

You can set a custom path location for this config file using the environment variable PIP_CONFIG_FILE.

Inside a virtualenv:

  • On Unix and Mac OS X the file is $VIRTUAL_ENV/pip.conf
  • On Windows the file is: %VIRTUAL_ENV%\pip.ini

配置当前用户使用豆瓣pip源

标签:

原文地址:http://www.cnblogs.com/yudar/p/5571141.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!