ubuntu sets python2.5 environment variables

After switching to python development, the dependence on windows is not particularly large, so using Linux will not affect the work. So, I installed an ubuntu system on the newly bought thinkpad.

In fact, I installed fedora at the beginning, but I couldn't set the wireless network card driver well under fedora, and some other software could not be installed because it was 64-bit. So re-use the u disk and install it as ubuntu64.

Regarding the setting of ubuntu's environment variables, it is in the directory: /usr/bin. Originally, when we entered python on the command line, it was actually the file called here. Because the system defaults to python2.7, but for the sake of unification, I still have to install it as 2.5, so there are some steps below:

1、 First install python2.5, how to install it should be very simple.

2、 Then set the python under /usr/bin our newly installed python2.5, use the following command:

sudo rm /usr/bin/python #This command means to delete the original python file

sudo ln -s /usr/bin/python2.5 /usr/bin/python #This command means to establish a python2.5 file link python (personal understanding)

3、 Finally, set the environment variable: export PATH=/usr/bin/python2.5:$PATH, so that, if you enter python on the command line, the system will execute the python file in /usr/bin.

Recommended Posts

ubuntu sets python2.5 environment variables
Python virtual environment: Ubuntu16.04
ubuntu build python development environment
ubuntu offline installation python environment
Ubuntu environment variables and ADB configuration
Install Python virtual environment on Ubuntu 18.04
Ubuntu16 upgrade Python3
ubuntu18.04 install python2
Relearn ubuntu --python3
ubuntu12.04 install python3
Build a python development environment under Ubuntu
ubuntu18.04 install python
ubuntu16.04 upgrade python2
Ubuntu20.04 install Python3 virtual environment tutorial detailed explanation
Install JDK and configure environment variables on Ubuntu 16.04
How to install python in ubuntu server environment
Install Python3 environment in a brand new Ubuntu
Ubuntu18.04 switch Python version
ubuntu16.04 deploy GPU environment
Install python3.6 under Ubuntu 16.04
ubuntu configuration python, Red
Ubuntu16.04 switch python version
Python MySQLd under Ubuntu
Ubuntu configuration development environment
[python] python2 and python3 under ubuntu
Ubuntu development environment configuration
Install Python3 on Ubuntu 14.04
Ubuntu Touch environment setup
Install python in Ubuntu
Install Python3 on Ubuntu 16.04
Ubuntu18.10 configure Java environment
ubuntu environment deployment project
Install Python3.7 on Ubuntu
How to create a Python virtual environment in Ubuntu 14.04
Django&MySQL environment deployment under Ubuntu 14.04
Python introduction and environment installation
Ubuntu install the latest Python 3.
Install python environment under Linux
Install Python 3.7 on Ubuntu 18.04 LTS
ubuntu18.04 compile and install python3.8
ubuntu14.0464 Ros environment install halcon13.01
ubuntu view python installation path
Detailed steps for installing Django under Python 3.6 in Ubuntu 16.04 environment
ubuntu builds common development environment
Centos7 deploys python3 virtual environment
Ubuntu 18.04.1 build Java environment and HelloWorld
Deploy JobConverter + Ibreoffice environment on Ubuntu
How does python change the environment
Ubuntu16.04 build php5.6 Web server environment
Docker ubuntu: install python-PIL-image environment on 14.04
How to install Python 3.8 on Ubuntu 18.04
Python Chinese encoding setting under ubuntu
Configure python3 environment on centos7 and
Install TensorFlow (python2.7 version) on Ubuntu
Ubuntu 19.1 installation and configuration Chinese environment
Install Spark stand-alone environment on Spark Ubuntu18
How to understand variables in Python
[python] python virtual environment construction & GPU environment
Install Hadoop system environment on Ubuntu 18.04
How to clear variables in python
CentOS 7 configure Python language development environment