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

Solution to BT Baota Panel php7.3 and php7.4 not supporting ZipArchive

The solution to the problem that the PHP7.3 versi...

How to modify the time zone and time in Ubuntu system

On a Linux computer, there are two times, one is ...

How to monitor mysql using zabbix

Zabbix deployment documentation After zabbix is ​...

Detailed explanation of MySQL Truncate usage

Table of contents MySQL Truncate usage 1. Truncat...

What is JavaScript anti-shake and throttling

Table of contents 1. Function debounce 1. What is...

Implementation of deploying war package project using Docker

To deploy war with Docker, you must use a contain...

Simple usage example of vue recursive component

Preface I believe many students are already famil...

Usage of Linux userdel command

1. Command Introduction The userdel (user delete)...

The actual process of implementing the guessing number game in WeChat applet

Table of contents Function Introduction Rendering...

Detailed explanation of MySQL monitoring tool mysql-monitor

1. Overview mysql-monitor MYSQL monitoring tool, ...