Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happens when "pip install <package name>"

Tags:

python

pip

What are the sequence of steps when we do

$ pip install <package name>

More specific questions

  1. How does pip find the package?
  2. Where does pip store the package?
  3. How to uninstall the package?
like image 815
Aman Avatar asked Oct 01 '13 17:10

Aman


2 Answers

1. How does pip find the package?

On the web, from the official repository PyPI (Python Package Index). A complete list of all packages can be found here.

2. Where does pip store the package?

They are installed in your Python directory, depends of your OS. Search about PYTHON_PATH/Lib/sites-packages, you may found packages install through pip :)

3. How to uninstall the package?

pip uninstall <package-name>
like image 115
Maxime Lorant Avatar answered Oct 24 '22 13:10

Maxime Lorant


  • In the Python Package Index a.k.a. PyPI.
  • In your Python installation's Lib\site-packages directory.
  • Usually with pip uninstall <package-name>
like image 26
Nicola Musatti Avatar answered Oct 24 '22 13:10

Nicola Musatti