Brief introduction
Configure the Python sandbox environment.
Installation steps
1, installation Pyenv
Reference: Https://github.com/yyuu/pyenv-installer, the following two ways:
Mode 1:
The first step: Execute in your own user directory
Curl-l https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
The second step: After the above operation is usually in the command line will appear the following prompt, add it to ~/.BASHRC, source ~/.BASHRC to make it effective, so our pyenv is initially installed successfully.
' pyenv ' To the load path:export pyenv_root="${home}/.pyenv"if"$ {Pyenv_root} " Then export PATH="${pyenv_root}/bin:${path}" "$ (pyenv init-)"fi
Mode 2:
Using Pip, execute the following command
Pip Install--egg pyenv
2, Installation Virtualenv
3. Establish and activate the sandbox environment:
Reference: Https://packaging.python.org/en/latest/installing.html#virtual-environments
Virtualenv <DIR><dir>/bin/activate
Python Virtual Environment configuration