RustyShackleford
RustyShackleford

Reputation: 27388

.pip folder not in HOME directory on OSX

I'm trying to edit ~/.pip/pip.conf file but the .pip folder is not present in osx.

I have pip installed globally as well as using it in various virtual environments.

Do I need to create this folder and file manually?

Upvotes: 3

Views: 4800

Answers (4)

Tim Boehm
Tim Boehm

Reputation: 1

In this case, the .pip folder will be hidden as well as the new empty file pip.conf. To view this folder from the Apple Finder, open Terminal, at the prompt$ copy/paste this in: defaults write com.apple.finder AppleShowAllFiles -bool true
Next, copy/paste this in: killall Finder You can now see the hidden folder, then you can open the pip.conf file from an application like Pycharm, enter in your index-url information, save, and then use pip install . To reverse the visibility of Hidden Folder/Files go to the prompt$ and enter: defaults write com.apple.finder AppleShowAllFiles -bool false Next, enter this in: killall Finder Result: The Apple Finder will restart and hide all the 'hidden' folders/files.

Upvotes: 0

pyNovice89
pyNovice89

Reputation: 339

To add to this as I was looking to set this up globally because the latest pip error was bothering me

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.

I ended up creating a .pip directory with a pip.conf file under my $HOME directory for global usage:

cd $HOME
mkdir .pip
cd .pip
touch pip.conf

Hope this helps anyone trying to figure out where their global pip is looking for a config file on OSX

Upvotes: 2

CJ Sullivan
CJ Sullivan

Reputation: 246

It should be in $HOME/.pip/pip.conf.

Upvotes: 1

RustyShackleford
RustyShackleford

Reputation: 27388

I had to create my own pip.conf file.

If using virtual env, create the pip.conf at the root of $VIRTUAL_ENV or the root of your virtual env folder.

Upvotes: 0

Related Questions