配置當前用戶使用豆瓣pip源

配置當前用戶使用豆瓣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:ide

  • 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.this

Inside a virtualenv:url

  • On Unix and Mac OS X the file is $VIRTUAL_ENV/pip.conf
  • On Windows the file is: %VIRTUAL_ENV%\pip.ini
相關文章
相關標籤/搜索