CentOS6.5 install python3.4.3

Source: Internet
Author: User
1. install the dependency package yuminstallgccgcc-c ++ openssl-develzlibzlib-devel2, download, and compile and install # cd/usr/src # wgethttps: // www.python.org/ftp/python/3.4.3/python-3.4.3.tgzw.tar

1. install the dependency package

Yum install gcc-c ++ openssl-devel zlib-devel

 

2. download and compile and install

# Cd/usr/src
# Wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tgz
# Tar xzf Python-3.4.3.tgz
# Cd Python-3.4.3
#./Configure
# Make altinstall

 

3. install ez_setup and pip

# Cd ..

# Wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py

#/Usr/local/bin/python3.4 ez_setup.py

#/Usr/local/bin/easy_install-3.4 pip

#/Usr/local/bin/pip3.4 install virtualenv

 

4. enable virtualenv

# Cd

#/Usr/local/bin/virtualenv-3.4 env1

# Cd env1

# Bin/activate

(Env1) locahost ~ # Python-V

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.