GNU/Linux >> Tutoriales Linux >  >> Ubuntu

Cómo instalar Python pip en CentOS/Debian/Ubuntu

Pip es un sistema de administración de paquetes que se utiliza para instalar y administrar paquetes de software escritos en Python. Muchos paquetes se pueden encontrar en el índice de paquetes de Python (PyPI). Python 2.7.9 y posteriores (en la serie python2), y Python 3.4 y posteriores incluyen pip (pip3 para Python 3) de forma predeterminada, por lo que es posible que ya tenga pip.

Uso de los administradores de paquetes del sistema operativo

En Linux, pip se puede instalar usando el administrador de paquetes del sistema como se muestra a continuación:

En Debian/Ubuntu:

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

En Fedora/CentOS/RHEL:

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

Si los comandos anteriores no funcionaron para usted, entonces puede instalar PIP manualmente

Instalación de PIP

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

Ejecute el siguiente comando:

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

get-pip.py instalará herramientas de configuración también para usted, si aún no está instalado.

Ahora ha instalado el administrador de paquetes pip con éxito.

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.

Cómo actualizar pip

En Linux o OS X:Ejecute el siguiente comando.

[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. Cómo instalar Pip en CentOS 7

  2. Cómo instalar PIP en Debian 9

  3. Cómo instalar Pip en Ubuntu 18.04, Debian 9 y Linux Mint 19

  4. Cómo instalar Python 3.5 en Ubuntu, Debian y Linuxmint

  5. Cómo instalar pip en Ubuntu 20.04

Cómo instalar Python Pip en Ubuntu 18.04 y 20.04

Cómo instalar Pip en Ubuntu

Cómo instalar PIP en Ubuntu 20.04

Cómo instalar Python Pip en Ubuntu 19.04

Cómo instalar Python Pip en Ubuntu 20.04 LTS

Cómo instalar Python PIP en Ubuntu 18.04