In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Install dependency packages
1) First install gcc compiler, gcc some system versions have been installed by default, through gcc --version view, not installed first install gcc, yum -y install gcc
2) Install other dependency packages,(Note: do not lack, otherwise there may be errors in installing python, Python versions below 3.7.0 can not install libffi-devel)
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel
2) Download
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz
Unzip Python-3.7.0.tgz
tar -zxvf Python-3.7.0.tgz
Create an empty folder to store Python 3 programs
mkdir /usr/local/python3
5. Execute configuration file, compile, compile and install
cd Python-3.7.0
./ configure --prefix=/usr/local/python3
make && make install
The installation is complete without any error.
7. Establish soft connection
ln -s /usr/local/python3/bin/python3.7 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3.7 /usr/bin/pip3
8. Test whether Python 3 can be used
copy code
[root@instance-rupxcbi1 Python-3.7.0]# python3
Python 3.7.0 (default, Oct 28 2019, 09:09:57)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux
Type "help", "copyright", "credits" or "license" for more information.
print("hello word")
hello word
exit()
Python 3.7.0 works fine.
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.