Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is pip.conf in my Mac which Python was installed via Homebrew?

Tags:

pip

I installed Python by Homebrew, it was fine for a long time. After upgrading pip to the latest version, I started to get:

DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning. 

But I can not find my pip.conf under /etc or /usr/local/etc or $HOME/Library/Application Support/pip or $HOME/.config/pip, where can I find it?

like image 434
Stephen Kuo Avatar asked Nov 08 '16 01:11

Stephen Kuo


People also ask

Where is pip config file on Mac?

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.

Where are pip credentials stored?

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.

How do you check if I have pip installed Mac?

Checking for pip on OS X The output of pip --version tells you which version of pip is currently installed, and which version of Python it's set up to install packages for. This is especially helpful if you have more than one version of Python installed on your system.


1 Answers

If your pip version is 9.0.1, add the following code to your ~/.pip/pip.conf to avoid the warning.

[list] format=columns 
like image 79
Andy Wang Avatar answered Oct 01 '22 11:10

Andy Wang