What is the sequence of steps when we do $ pip install More specific questions ...">

What happens when "pip install <package name">

What is the sequence of steps when we do

 $ pip install <package name> 

More specific questions

  • How does pip find the package?
  • Where does the pip store the packet?
  • How to remove a package?
+6
source share
2 answers

1. How does pip find the package?

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

2. Where does the pip store the package?

They are installed in your Python directory, depending on your OS. Search PYTHON_PATH/Lib/sites-packages , you can find packages to install via pip :)

3. How to remove a package?

 pip uninstall <package-name> 
+4
source
  • In the Python package index, aka PyPI .
  • In your Lib\site-packages directory for installing Python.
  • Usually with pip uninstall <package-name>
+1
source

Source: https://habr.com/ru/post/955047/


All Articles