In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "Centos7 how to install Python3.5" related knowledge, Xiaobian through the actual case to show you the operation process, the method of operation is simple and fast, practical, I hope that this "Centos7 how to install Python3.5" article can help you solve the problem.
You can see that we are now 2.7.5, and now I am installing a 3.5 version
Step 1: visit https://www.python.org/downloads/
Select the corresponding version
Wget https://www.python.org/ftp/python/3.5.3/Python-3.5.3.tar.xz
Download it.
Decompression
Tar-xf Python-3.5.1.tgz
Change to the decompressed directory
Cd Python-3.5.3
Step 2: start the compilation and installation, let's set up a folder
Mkdir / usr/python3.5
We install this version into this file.
. / configure-- prefix=/usr/python3.5
Start compilation and installation
Make & & make install
Compiling
It's installed.
Step 3: shall we give way? Python3.5 is used by default
Mv / usr/bin/python python.bakln-s / usr/python3.5/bin/python3 / usr/bin/python
Step 4: because yum uses python2, it may not work properly after replacing it with python3. If we continue to use this python2.7.5, we use yum and find that there is an error.
Vi / usr/bin/yum
Point the python version of the yum call to python2.7
Yes
This is the end of the introduction to "how Centos7 installs Python3.5". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.