In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Today, the editor will share with you the relevant knowledge points about how to install Python3.7 in Linux. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look.
Install the Python3.7 version in linux
1. Install the dependency package
1) install gcc compiler first. Some system versions of gcc have been installed by default. Check through gcc-version, and install gcc,yum-y install gcc first if it is not installed.
2) install other dependent packages (Note: do not lack it, otherwise there may be errors in installing python. Versions below python3.7.0 may 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 can also install dependency packages for all development environments using the yum-y groupinstall "Development tools" command
2. Download the python3.7.x source code, download it according to demand, download it on the official website https://www.python.org/downloads/source/, and download the compressed package file in taz format
You can also use an image to download here. You can select the python source code package you need in https://www.python.org/ftp/python/ and download it using the wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz command.
3) after the Python-3.7.0.tgz download is completed, put the compressed file into the root directory of linux, install it with root permissions, and extract it first
Tar-zxvf Python-3.7.0.tgz4, create an empty folder for storing python3 programs
Mkdir / usr/local/python35, execute configuration file, compile, compile and install
Cd Python-3.7.0. / configure-- prefix=/usr/local/python3 make & & make install installed successfully without prompting an error. 7. Establish a soft connection (both Python and pip establish a soft connection, which distinguishes python3, pip3 and the Python2 that comes with the system, respectively)
Ln-s / usr/local/python3/bin/python3.7 / usr/bin/python3 ln-s / usr/local/python3/bin/pip3.7 / usr/bin/pip38, test whether python3 can be used
Both Python and pip commands can be used and installed successfully
These are all the contents of the article "how to install Python3.7 in Linux". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
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.