pip yes Python Package management tools , The tool provides the right Python Bag search 、 download 、 Installed and uninstalled features , Now all the packages we use are either self-contained or through pip Installed .Python 2.7.9 + or Python 3.4+ All of the above versions come with pip Tools . give pip The website links :pip Official website .
By command pip --version To determine if... Is installed :
If you haven't already installed , You can use the following two methods to install :
1、Python With a ensurepip modular , Can be in Python Installation in the environment pip.cmd Enter the following command
py -m ensurepip --upgrade
2、 You can also download one Python Script , Use command line boot logic to install pip.
Download script To your Python Under the folder
win+cmd Open the terminal , Switch to your script Directory
Enter the command enter
py get-pip.py
pip --version
pip --help
pip install -U pip
ps: Upgrade with caution , Often see pip Remind to upgrade , Then enter the command enter , The system starts to download the latest installation package ,
Uninstalled the previous version before preparing to install pip, Then the new version reported an error and could not be installed , Had to reload .
pip install SomePackage # The latest version
pip install SomePackage==1.0.4 # Specify the version
pip install ‘SomePackage>=1.0.4’ # Minimum version
For example, I want to install sklearn, Input pip install sklearn, The latest version of the package will be installed
pip install --upgrade SomePackage
Upgrade the specified package , By using ==, >=, <=, >, < To specify a version number .
pip uninstall SomePackage
pip search SomePackage
pip show SomePackage
pip list
pip show -f SomePackage
In the conversation with a fan, I know that she has asked many official account and bloggers , But I was the only one who returned to her and helped her . He also sent a long paragraph to thank me , I also replied politely to her , She also mentioned that it was not easy to find my blog , And it's free and open source . Free resource sharing 、 Helping others for free has always been my original intention , I don't care if others charge , Or paid columns or paid resources , In short, I do my own , Everyone shines in his own field !