In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "how to install Python2.7.15 and 3.6under the linux platform". In the daily operation, I believe that many people have doubts about how to install Python2.7.15 and 3.6under the linux platform. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the questions of "how to install Python2.7.15 and 3.6under the linux platform". Next, please follow the editor to study!
Wget to the softwere folder
[root@iZ2ze7qh7q0di3qkvef1dzZ software] # ls-ltr
Total 38836
-rw-r--r-- 1 root root 22256403 Dec 23 2016 Python-3.6.0.tgz
-rw-r--r-- 1 root root 17496336 Apr 30 2018 Python-2.7.15.tgz
Drwxr-xr-x 18 1000 1000 4096 Nov 6 14:48 Python-2.7.15
Drwxr--r-- 18 501 games 4096 Nov 6 15:11 Python-3.6.0
Go to Python-2.7.15 and install it into the 2.7.15 folder, which needs to be created in advance.
. / configure-- prefix=/usr/local/python-2.7.15
After the above step is completed, execute make & & make install
Make a soft connection and replace the previous, previous mv individual name with the new executable file
Mv / usr/bin/python / usr/bin/python_old
Ln-s / usr/local/python-2.7.15/bin/python2.7 / usr/bin/python
An error was encountered while installing version 3.0:
Zipimport.ZipImportError: can't decompress data; zlib not available
The reason for this error is the lack of zlib package. You can install it as follows:
Yum-y install zlib*
After installation, rerun make & & make install
At this point, the study on "how to install Python2.7.15 and 3.6under the linux platform" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.