Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is pip installed to when using get-pip.py?

Tags:

python

macos

pip

I just installed pip on OS X using the get-pip.py script provided by the developers. The script said it ran successfully, but I cannot execute pip from the command line. I guess pip is not in my path, but I don't know where it installed to so I can't add it to the path. Any help would be most excellent. Thanks!

When I attempt to run the install script again, here is the output:

Requirement already up-to-date: pip in /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages Cleaning up... 
like image 552
Max Avatar asked Mar 09 '14 03:03

Max


People also ask

Where does pip get installed to?

To install modules locally, you need to create and activate what is called a virtual environment, so pip install installs to the folder where that virtual environment is located, instead of globally (which may require administrator privileges).

Where does pip go in Python?

The most common usage of pip is to install from the Python Package Index using a requirement specifier.


Video Answer


1 Answers

If you can't find the path to pip you can simply use python -m pip instead:

python -m pip install awesome_package 
like image 55
Tyilo Avatar answered Sep 20 '22 11:09

Tyilo