I can't find the file pip.conf
in the path ~/.config/pip/pip.conf
or the path ~/pip/pip.conf
. My version of pip is 8.1.2
pip/pip. conf . The legacy “per-user” configuration file is also loaded, if it exists: $HOME/. pip/pip.
It contains configuration on how to access specific PyPI index servers when publishing a package. pip. conf on the other hand is only used by the pip tool, and pip never publishes packages, it downloads packages from them.
pip supports loading credentials stored in your keyring using the keyring library. Note that keyring (the Python package) needs to be installed separately from pip. This can create a bootstrapping issue if you need the credentials stored in the keyring to download and install keyring.
As stated in the documentation, the default locations for Linux are:
$HOME/.config/pip/pip.conf
/etc/pip.conf
https://pip.pypa.io/en/stable/user_guide/#configuration
If you do not have the pip.conf by default, create it on your desired directory and do the export.
export PIP_CONFIG_FILE=/path/to/pip.conf
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With