Install and deploy Python on Linux

Source: Internet
Author: User
Tags virtual environment

It is common to use Python in Linux to install pyenv for version control because linux6.9 comes with Python 2.6 and many commands are based on 2.6 development, so the system environment can not be changed we want to develop only with Pyenv version control Create a folder to do a virtual environment installation Python3.5.5 later this virtual environment development is to use python3.5.5

The first step is to install Git (pyenv on git)

Yum Install git-y

Second, pull the pyenv on Git.

[[email protected] ~]$ git clone https://github.com/yyuu/pyenv.git ~/.pyenvInitialized Empty Git Repositoryinch/home/python/.pyenv/.git/remote:counting objects:16351, Done. remote:compressing objects: -% ( the/ the), Done. Remote:total16351(Delta -), reused -(Delta $), pack-reused16226Receiving objects: -% (16351/16351),3.15MiB |247KIB/S, Done. Resolving deltas: -% (11102/11102), Done. [[Email protected]~]$Echo 'export pyenv_root= "$HOME/.pyenv"'>> ~/. bash_profile [[email protected]~]$Echo 'export path= "$PYENV _root/bin: $PATH"'>> ~/. Bash_profile[[email protected]~]$Echo 'eval "$ (pyenv init-)"'>> ~/. Bash_profile[[email protected]~]$ exit #需要退出重新登录 [[email protected]~]#su-Python

Step three install Python now pyenv install--help view Installable python version

Installing Python install 3.5.5

Install and deploy Python on Linux

Related Article

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.