Get the App
SLTechnology News&Howtos  ›  Development  › 

How to install multiple Python versions under Linux

Shulou Source: shulou.com Published: 2022-06-02 00:03:37 11月08日 Update

Most people do not understand the knowledge points of this article "how to install multiple Python versions under Linux", so the editor summarizes the following contents, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to install multiple Python versions under Linux" article.

Download the Python source code

Download the source file from http://www.python.org/download/.

Compile and install tar zxvf Python-2.7.6.tgzcd Python-2.7.6./configure-prefix=/usr/local/python-2.7.6 # is important, specify the installation path of python, you can set it yourself. Makesudo make install modifies Python soft chain

The default python command is in the / usr/bin/ directory, where you need to modify the soft chain to version 2.7, and create a 2.4 soft chain by the way.

Mv / usr/bin/python / usr/bin/python2.4 # according to the need to ln-s / usr/local/python-2.7.6/bin/python / usr/bin/python above is about "how to install multiple Python versions under Linux" this article, I believe we all have a certain understanding, I hope the content shared by the editor will be helpful to you, if you want to learn more about the relevant knowledge, please follow the industry information channel.

Tags: Content version multiple articles knowledge articles importance value commands most that is in more steps source files source code directories knowledge points industry information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Technology macOS Redmi Microsoft