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
The main differences are as follows: 1. MySQL use...
For novices who have just started to build a webs...
1. Introduction Whether the creation time of a fi...
A colleague asked for help: the login to the back...
ask: I have styled the hyperlink using CSS, but i...
When the above settings are used in IE8 and Chrome...
Table of contents 1. Database constraints 1.1 Int...
This article shares with you how to implement dra...
Table of contents Determine whether a record alre...
<br />My previous article about CSS was not ...
It is often necessary to run commands with sudo i...
Preface The simple understanding of MySQL permiss...
1|0MySQL (MariaDB) 1|11. Description MariaDB data...
1 What is MVCC The full name of MVCC is: Multiver...
Table of contents Preface Core code File shows pa...