CentOS7 installation python3 recommendations

1. Preparing the Environment

System Tools version
CentOS 7

2. Install Epel

Open the console, enter the following command:

sudo yum install epel-release

3. Install python34

  1. Open the console, enter the following command:
sudo yum install python34
  1. Modify the python executable file name
cd /usr/bin
mv python3.4 python

4. Verify python

Open the console, enter the following command:

python 

Into the python console
Here Insert Picture Description

5. Installation pip

Open the console, enter the custom tools directory, enter the following command:

cd /home/tools
curl -O https://bootstrap.pypa.io/get-pip.py 
python get-pip.py

6. Verify pip

Open the console, enter the following command:

pip --version

View pip version
Here Insert Picture Description

Released nine original articles · won praise 2 · Views 864

Guess you like

Origin blog.csdn.net/qq_28540443/article/details/104263229