1 Python Multi-version management tool PYENV
Pyenv Installation Method:
Yum-y Install git
Yum-y install gcc make patch gdbm-devel openssl-devel sqlite-devel readline-devel zlib-devel Bzip2-debel
Useradd python
Su-python
wget Https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer
wget Https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer
Download one of the above to
Execute permissions on the script and execute the script when you are done downloading
chmod 755 Pyenv-installer
./pyenv-installer
Last prompt to add environment variables after executing script
Export path= "/home/python/.pyenv/bin: $PATH"
Eval "$ (pyenv init-)"
Eval "$ (pyenv virtualenv-init-)"
Add the above to the user's ~/.bash_profile file
Execute source ~/.bash_profile
Install version 3.5.3 Python
Pyenv Install 3.5.3
Pyenv Install--list list available versions
Local typically defines a Python environment as a directory
Globe definition Global scope python environment is generally disabled
The python environment defined after the shell reply-level python environment switch fails
Python virtual machine virtualenv (useful for multi-person collaborative development)
Pyenv virtualenv 3.5.3 heaven353
Pyenv versions
Pyenv Local heaven353
Pyenv version
PIP General Configuration
Python Development Environment Building