1. Install Python 3 1. Install dependency packages 2. Download the Python installation package wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tar.xz The reason for downloading and installing python3.5.2 here is mainly because of the good stability of Django in the later stage. 3. Unzip the Python installation package tar -Jxvf Python-3.5.2.tar.xz 4. Configure the installation path Go to the unzip directory ./configure prefix=/usr/local/python3 5. Compile and install Go to the unzip directory 6. Configure soft connection Now you can use python3.5.2 and pip3 normally It is found here that pip3 cannot be used after configuring soft link: Solution: [root@localhost bin]# which pip3 /usr/bin/pip3 [root@localhost bin]# pip3-bash: /usr/local/bin/pip3: no such file or directory [root@localhost bin]# type pip3 pip3 has been hashed (/usr/local/bin/pip3) [root@localhost bin]# hash -r [root@localhost bin]# type pip3 pip3 is /usr/bin/pip3 7. Export the list of packages previously installed by Python in Windows Open cmd and switch to the desktop pip freeze > package.txt Then import it into Centos7 and install the modules in the file with pip3 At this point, the functions and common modules in python3 have been installed and can be used normally Uninstall python3 View the current Python version: Note that when uninstalling, python is followed by 2 or 3 or nothing, otherwise all will be deleted. Uninstall Summarize The above is the tutorial on how to install and uninstall python3 on Centos7 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. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you! You may also be interested in:
|
<<: Detailed explanation of client configuration for vue3+electron12+dll development
1. Single machine environment construction# 1.1 D...
How to add <script> script in HTML: 1. You c...
In the previous article https://www.jb51.net/arti...
MySQL deployment Currently, the company deploys M...
WeChat applet form validation, for your reference...
In Linux, everything is a file, so the Android sy...
I finished reading "Patterns for Sign Up &...
Table of contents Class Component Functional Comp...
Date-type single-row functions in MySQL: CURDATE(...
The development of Docker technology provides a m...
This article records the specific method of insta...
Environment configuration 1: Install MySQL and ad...
mysql row to column, column to row The sentence i...
After this roll call device starts calling the ro...
Normally, you'll need to read everyone's s...