简体   繁体   中英

What happens when “pip install <package name>”

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?

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>
  • In the Python Package Index aka PyPI .
  • In your Python installation's Lib\\site-packages directory.
  • Usually with pip uninstall <package-name>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM