How to use pip in python
This article mainly introduces how to use pip in python, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Detailed explanation of pip usage
1 pip installation package
# pip install installation package name [...] Successfully installed SomePackage # installed successfully
2 pip to see if it is installed
# pip show-- files installation package name Name:SomePackage # package name Version:1.0 # version number Location:/my/env/lib/pythonx.x/site-packages # installation location Files: # include files, etc. / somepackage/__init__.py [...]
3 pip checks which packages need to be updated
# pip list-outdated
4 pip upgrade Pack
# pip install-- the name of the package to be upgraded by upgrade
Package name the latest version number of the currently installed version
5 pip uninstall package
# the name of the package to be uninstalled by pip uninstall Thank you for reading this article carefully. I hope the article "how to use pip in python" shared by the editor will be helpful to you. At the same time, I also hope you will support us and follow the industry information channel. More related knowledge is waiting for you to learn!