Find software for software and go to Huajun Software Park! Software release
Location: front page————Tutorial————Tutorial————Computer software tutorial ———— Linux configuration P ...

How to configure the Python environment

author: Date: 2022-05-23

Python
Python-v3.12.2150.0

Programming tool Occupy: 25.43MB Time: 2022-12-05

Software Introduction: Python is a universal computer program design language. Python is a very favorable tool for programmers that allow you ...

Download now

 How to configure 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 download it in WGET:

      wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz#md5=7df2a529a074f613b509fb44feefe74e

2. Install Python

-Chat to view the python that comes with the system:

[Root@njdyw ~]# python

Python python2 python2.4

-Frown 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

-Coltage

[Root@njdyw python]# TAR -ZVXF Python -2.7.3.tgz

[Root@njdyw python]# LS

Python-2.7.3 Python-2.7.3.tgz

--Configure: Avoid affecting the original Python, PREFIX must be developed.

[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


Related articles