How to install pip package in Linux

How to install pip package in Linux

1. Download the pip installation package according to the python version of your system. You can download the corresponding version from the official website.

[root@www ~]# python ##Check the python version Python 2.7.5 (default, Aug 4 2017, 00:39:18) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb" --no-check-certificate

2. Enter the directory and execute

#cd pip-1.5.4
#python setup.py install

3. An error message appears: ImportError No module named setuptools

Execute yum install python-setuptools

Then execute #python setup.py install to execute successfully

Use pip install name to install the module

Summarize

The above is the method of installing pip package under Linux introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time!

You may also be interested in:
  • How to install pip package in Linux
  • Detailed explanation of upgrading Python and installing pip under Linux
  • Detailed tutorial on using pip command after Python installation under Linux
  • Detailed installation steps and usage of pip under Linux
  • Download and install setuptool and pip Linux installation pip

<<:  Detailed explanation of how to use Node.js to implement hot reload page

>>:  MySQL trigger simple usage example

Recommend

How to modify port 3389 of Windows server 2008 R2 remote desktop

The default port number of the Windows server rem...

How to simply encapsulate axios in vue

Inject axios into Vue import axios from 'axio...

Steps to set up and mount shared folders on Windows host and Docker container

Programs in Docker containers often need to acces...

How to introduce scss into react project

First download the dependencies yarn add sass-loa...

Summary of MySQL logical backup and recovery testing

Table of contents 1. What kind of backup is a dat...

CSS3 realizes the red envelope shaking effect

There is a requirement to realize the shaking eff...

CentOS7 installation GUI interface and remote connection implementation

Use the browser (webdriver)-based selenium techno...

How to use mqtt in uniapp project

Table of contents 1. Reference plugins in the uni...

Bootstrap 3.0 learning notes button style

This article mainly explains the style of buttons...

An example of elegant writing of judgment in JavaScript

Table of contents Preface 1. Monadic Judgment 1.1...