GNU/Linux >> Linux Esercitazione >  >> Ubuntu

Come installare Python pip su CentOS/Debian/Ubuntu

Pip è un sistema di gestione dei pacchetti utilizzato per installare e gestire i pacchetti software scritti in Python. Molti pacchetti possono essere trovati nel Python Package Index (PyPI). Python 2.7.9 e versioni successive (sulla serie python2) e Python 3.4 e versioni successive includono pip (pip3 per Python 3) per impostazione predefinita, quindi potresti già avere pip.

Utilizzo dei gestori di pacchetti del sistema operativo

Su Linux, pip può essere installato utilizzando gestore di pacchetti di sistema come mostrato di seguito:

Su Debian/Ubuntu:

[root@openstack export]# apt-get install python-pip

Su Fedora/CentOS/RHEL:

[root@openstack export]# yum install python-pip

Se i comandi precedenti non hanno funzionato per te, puoi installare PIP manualmente

Installazione PIP

[root@openstack export]# wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate

Esegui il comando seguente:

[root@openstack export]# python get-pip.py

get-pip.py installerà setuptools anche per te, se non già installato.

Ora hai installato correttamente il gestore di pacchetti pip.

Note: In case, if 'python get-pip.py' ended up with "Syntax Error at line 43", then you need to check the version of Python. Pip is not supported in Python version 2.4, you may need to install Python version > 2.4. Here's a guide that explains Installation of Python version 3.5 from source.

Come aggiornare pip

Su Linux o OS X:esegui il comando seguente.

[root@openstack export]# pip install -U pip
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
Requirement already up-to-date: pip in /usr/lib/python2.6/site-packages

Ubuntu
  1. Come installare Pip su CentOS 7

  2. Come installare PIP su Debian 9

  3. Come installare Pip su Ubuntu 18.04, Debian 9 e Linux Mint 19

  4. Come installare Python 3.5 su Ubuntu, Debian e Linuxmint

  5. Come installare pip su Ubuntu 20.04

Come installare Python Pip su Ubuntu 18.04 e 20.04

Come installare Pip su Ubuntu

Come installare PIP in Ubuntu 20.04

Come installare Python Pip su Ubuntu 19.04

Come installare Python Pip su Ubuntu 20.04 LTS

Come installare Python PIP su Ubuntu 18.04