Linux needs to use Python, you need to configure its environment, because there are more steps involved, so Xiaobian will give you a detailed explanation, let's look at it together See how Linux configures the Python environment.
OS: Oracle Linux Enterprise 5.6
1. Download
Python
Version: Python-2.7.3.tgz
setuptools
Version: setuptools-0.6c11.tar.gz(md5)
You can also use wget to download:
wget http://pypi.python. Org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz#md5=7df2a529a074f613b509fb44feefe74e
2. Install Python
--View the system's own python:
[root@njdyw ~]# python
python python2 python2.4
--Install Python2.7.3
[root@njdyw ~]# mkdir /python
[root@njdyw ~]# cp Python-2.7.3.tgz /python/
[root@njdyw ~]# cd /python/
[root@ Njdyw python]# ls
Python-2.7.3.tgz
--Unpacking
[root@njdyw python]# tar -zvxf Python-2.7.3.tgz
[root@njdyw python]# ls
Python-2.7.3 Python-2.7.3.tgz
--configure To avoid the impact of the original Python, you must develop prefix.
[root@njdyw python]# cd Python-2.7.3
[root@njdyw Python-2.7.3]# . /configure --prefix=/usr/local/python2.7.3
--make:
[root@njdyw Python-2.7.3]# make
-- Make install:
[root@njdyw Python-2.7.3]# make install
Previous12Next page Total 2 pages
During the use of Linux systems, sometimes we will use some tools to backup or restore file permissi
Under the CentOS system, if only single-user mode is used, there will be hidden dan
Linux system administrators need to perform real-time monitoring of commands so tha
Many people want to know which shell is used in the Linux system of this machine, the following smal
How to configure the network for Kali Linux?
Linux system rescue mode operation example
The specific steps of hard disk partitioning under Linux
Ubuntu how to set up system update reminder
What should I do if the Windows and Virtualbox port number mapping fails?
Linux which command to find files using
Linux prompt Unable to locate package how to deal with?
How to install Node.js Express
Linux recovery steps for deleting files by lsof command
Steps for installing JDK8 on CentOS system
Linux system settings automatically adjust the screen brightness method
How to add the "Use 360 powerful delete" option to the right mouse button
How Win7 changes the MP3 music information
How does Win10 retail version turn off automatic updates?
Method for adding Flash plugin for IE browser in Win 8 system
How to deal with the disappearance of ibus input method icon after upgrading Ubuntu 12.04?
Windows 8 system input method settings and switching methods
What is the meaning of the computer one for two, the computer one for two operation skills (a)