Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to install the Python3.6 version in Linux

Shulou Source: shulou.com Published: 2022-05-31 11:21:42 09月23日 Update

Today, the editor will share with you how to install the Python3.6 version in Linux. The content is detailed and the logic is clear. I believe most people still know too much about this, so share this article for your reference. I hope you can get something after reading this article.

Install python 3.6in linux

Before installing python in centos 7, make sure that you already have all the necessary development dependencies in your system:

# yum-y groupinstall development# yum-y install zlib-devel

In debian, we need to install gcc, make, and zlib compression / decompression libraries:

# aptitude-y install gcc make zlib1g-dev

Run the following command to install python 3.6:

# wget https://www.python.org/ftp/python/3.6.0/python-3.6.0.tar.xz# tar xjf python-3.6.0.tar.xz# cd python-3.6.0#. / configure# make & & make install

Now, relax, or have a sandwich if you're hungry, because it may take some time. After the installation is complete, use the which command to view the location of the main binaries:

# which python3# python3-v

The output of the above command should be similar to this:

To exit the python prompt, simply type:

Quit () # or exit ()

Then press enter.

Congratulations! Python 3.6is already installed on your system.

Install python idle in linux

Python idle is a gui-based python tool. If you want to install python idle, install a package called idle (debian) or python-tools (centos):

# apt-get install idle [on debian] # yum install python-tools [on centos]

Enter the following command to start python idle:

# idle above is all the content of the article "how to install Python3.6 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.

Tags: Zhongan command knowledge article face version content system input different large similar necessary sandwich binary code location just enter key most Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Microsoft Apple Xiaomi MariaDB