Pip (CloudMonk.io)

pip



Return to Python, Package managers, nuget for .NET, NPM for JavaScript and Node.js, Gems for Ruby

P



Return to Python glossary, Python lingo, Python

" (FlntPy 2022)

Fair Use Sources


Fair Use Sources:
* B09WZJMMJP (FlntPy 2022)

{{navbar_python}}

{{navbar_footer}}


PIP installs packages




Do I need to install pip?



pip is already installed if you are using Python 2 >=2.7.9 or Python 3 >=3.4 downloaded from python.org or if you are working in a Virtual Environment created by virtualenv or pyvenv. Just make sure to upgrade pip.

Installing with get-pip.py



To install pip, securely download get-pip.py. [1]:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

As when running any script downloaded from the web, ensure that you have reviewed the code and are happy that it works as you expect. Then run the following:

python get-pip.py

Warning


Be cautious if you are using a Python install that is managed by your operating system or another package manager. get-pip.py does not coordinate with those tools, and may leave your system in an inconsistent state.


Fair Use Source: https://pip.pypa.io/en/stable/installing


Install Example under Windows 10



easy_install pip

Searching for pip

Best match: pip 10.0.1

Adding pip 10.0.1 to easy-install.pth file

Installing pip-script.py script to c:\program files\python37\Scripts

Installing pip.exe script to c:\program files\python37\Scripts

Installing pip3-script.py script to c:\program files\python37\Scripts

Installing pip3.exe script to c:\program files\python37\Scripts

Installing pip3.6-script.py script to c:\program files\python37\Scripts

Installing pip3.6.exe script to c:\program files\python37\Scripts

Using c:\program files\python37\lib\site-packages

Processing dependencies for pip

Finished processing dependencies for pip

----

C:\Python37>pip3 install --upgrade pip

ERROR: To modify pip, please run the following command:

c:\python37\python.exe -m pip install --upgrade pip

You are using pip version 10.0.1, however version 18.1 is available.

You should consider upgrading via the 'python -m pip install --upgrade pip' command.


C:\Python37>python.exe -m pip install --upgrade pip

Collecting pip

Using cached https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl

Installing collected packages: pip

Found existing installation: pip 10.0.1

Uninstalling pip-10.0.1:

Successfully uninstalled pip-10.0.1

Successfully installed pip-18.1


External sites


https://pypi.org/project/pip