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