Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

linux centos 6.7 pip3 install

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

I wanted then to run pip3, but the command was not found.

After researching I tried to install setup tools with ezsetup.

This failed so I downloaded setuptools-20.9.x unzipped this and ran python3.5 easy_install and get the error

#ImportError: No module named 'zipimport'
like image 848
thetone Avatar asked Apr 18 '16 12:04

thetone


People also ask

How do I get PIP3 on Linux?

To install pip3 on Ubuntu or Debian Linux, open a new Terminal window and enter sudo apt-get install python3-pip . To install pip3 on Fedora Linux, enter sudo yum install python3-pip into a Terminal window. You will need to enter the administrator password for your computer in order to install this software.


1 Answers

First Option:

Pip is part of Extra Packages for Enterprise Linux (EPEL), which is a community repository of non-standard packages for the RHEL distribution

  1. First, add the EPEL repository [RECOMMENDED]:

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

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 check here

like image 147
Ganesh Kathiresan Avatar answered Sep 18 '22 10:09

Ganesh Kathiresan