How to install pip for Python3.4 on CentOS


How to install pip for Python3.4 on CentOS?

yum install python34-pip -y

Result:

[root@tutorialspots ~]# yum install python34-pip -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.host-engine.com
 * epel: epel.mirror.constant.com
 * extras: mirrors.gigenet.com
 * nux-dextop: mirror.li.nux.ro
 * remi-safe: mirror.bebout.net
 * updates: mirrors.usinternet.com
Resolving Dependencies
--> Running transaction check
---> Package python34-pip.noarch 0:8.1.2-12.el7 will be installed
--> Processing Dependency: python34-setuptools for package: python34-pip-8.1.2-12.el7.noarch
--> Running transaction check
---> Package python34-setuptools.noarch 0:39.2.0-4.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                    Arch          Version             Repository   Size
================================================================================
Installing:
 python34-pip               noarch        8.1.2-12.el7        epel        1.7 M
Installing for dependencies:
 python34-setuptools        noarch        39.2.0-4.el7        epel        613 k

Transaction Summary
================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 2.3 M
Installed size: 9.7 M
Downloading packages:
(1/2): python34-pip-8.1.2-12.el7.noarch.rpm                | 1.7 MB   00:00
(2/2): python34-setuptools-39.2.0-4.el7.noarch.rpm         | 613 kB   00:00
--------------------------------------------------------------------------------
Total                                              4.5 MB/s | 2.3 MB  00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python34-setuptools-39.2.0-4.el7.noarch                      1/2
  Installing : python34-pip-8.1.2-12.el7.noarch                             2/2
  Verifying  : python34-setuptools-39.2.0-4.el7.noarch                      1/2
  Verifying  : python34-pip-8.1.2-12.el7.noarch                             2/2

Installed:
  python34-pip.noarch 0:8.1.2-12.el7

Dependency Installed:
  python34-setuptools.noarch 0:39.2.0-4.el7

Complete!

how-to-install-pip-for-python3-4-on-centos

Now you have these files:

rpm -ql python34-pip
...
/usr/lib/python3.4/site-packages/pip/vcs/bazaar.py
/usr/lib/python3.4/site-packages/pip/vcs/git.py
/usr/lib/python3.4/site-packages/pip/vcs/mercurial.py
/usr/lib/python3.4/site-packages/pip/vcs/subversion.py
/usr/lib/python3.4/site-packages/pip/wheel.py
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/pip3.4
/usr/share/doc/python34-pip-8.1.2
/usr/share/doc/python34-pip-8.1.2/README.rst
/usr/share/doc/python34-pip-8.1.2/docs
/usr/share/doc/python34-pip-8.1.2/docs/Makefile
/usr/share/doc/python34-pip-8.1.2/docs/__init__.py
/usr/share/doc/python34-pip-8.1.2/docs/conf.py
/usr/share/doc/python34-pip-8.1.2/docs/configuration.rst
/usr/share/doc/python34-pip-8.1.2/docs/cookbook.rst
/usr/share/doc/python34-pip-8.1.2/docs/development.rst
/usr/share/doc/python34-pip-8.1.2/docs/index.rst
/usr/share/doc/python34-pip-8.1.2/docs/installing.rst
/usr/share/doc/python34-pip-8.1.2/docs/logic.rst
/usr/share/doc/python34-pip-8.1.2/docs/make.bat
/usr/share/doc/python34-pip-8.1.2/docs/news.rst
/usr/share/doc/python34-pip-8.1.2/docs/pipext.py
/usr/share/doc/python34-pip-8.1.2/docs/quickstart.rst
/usr/share/doc/python34-pip-8.1.2/docs/reference
/usr/share/doc/python34-pip-8.1.2/docs/reference/index.rst
/usr/share/doc/python34-pip-8.1.2/docs/reference/pip.rst
/usr/share/doc/python34-pip-8.1.2/docs/reference/pip_download.rst
/usr/share/doc/python34-pip-8.1.2/docs/reference/pip_freeze.rst
/usr/share/doc/python34-pip-8.1.2/docs/reference/pip_hash.rst
/usr/share/doc/python34-pip-8.1.2/docs/reference/pip_install.rst
/usr/share/doc/python34-pip-8.1.2/docs/reference/pip_list.rst
/usr/share/doc/python34-pip-8.1.2/docs/reference/pip_search.rst
/usr/share/doc/python34-pip-8.1.2/docs/reference/pip_show.rst
/usr/share/doc/python34-pip-8.1.2/docs/reference/pip_uninstall.rst
/usr/share/doc/python34-pip-8.1.2/docs/reference/pip_wheel.rst
/usr/share/doc/python34-pip-8.1.2/docs/usage.rst
/usr/share/doc/python34-pip-8.1.2/docs/user_guide.rst
/usr/share/licenses/python34-pip-8.1.2
/usr/share/licenses/python34-pip-8.1.2/LICENSE.txt

Check info about this package:

[root@tutorialspots ~]# yum info python34-pip
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.host-engine.com
 * epel: epel.mirror.constant.com
 * extras: mirrors.gigenet.com
 * nux-dextop: mirror.li.nux.ro
 * remi-safe: mirror.bebout.net
 * updates: mirrors.usinternet.com
Installed Packages
Name        : python34-pip
Arch        : noarch
Version     : 8.1.2
Release     : 12.el7
Size        : 6.8 M
Repo        : installed
From repo   : epel
Summary     : A tool for installing and managing Python3 packages
URL         : http://www.pip-installer.org
License     : MIT and BSD and ASL 2.0 and ISC and Python and (ASL 2.0 or BSD)
            : and LGPLv2+
Description : Pip is a replacement for easy_install.  It uses mostly the
            : same techniques for finding packages, so packages that were made
            : easy_installable should be pip-installable as well.

Check version:

[root@tutorialspots ~]# pip3.4 --version
pip 8.1.2 from /usr/lib/python3.4/site-packages (python 3.4)

Recent search terms:

  • linux tutorials online free -https

Leave a Reply