Linux centos 6.7 pip3 install

I have a Centos 6.7 distribution and I installed python 3.5 from source.

Then I needed to start pip3 , but the command was not found.

After researching, I tried installing the installation tools using ezsetup.

This failed, so I downloaded setuptools-20.9.x, unpacked it and ran python3.5 easy_install and got an error

 #ImportError: No module named 'zipimport' 
+5
source share
1 answer

First option:

Pip is part of Enterprise Linux (EPEL) add-on packages, which is a repository of the custom package community for RHEL distribution

  • First add the EPEL repository [RECOMMENDS]:

rpm -iUvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

  1. Update: yum -y update

  2. Install: yum -y install python-pip

The second option:

We can also use curl and python to download and install Pip;

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

Then

 python get-pip.py 

Just check by typing: pip -V

For reference: here

+8
source

Source: https://habr.com/ru/post/1247359/


All Articles