First, install Python and Easy_install and Pip
The new version of Linux should come with these environments, and you can look for Google configurations without your own.
Second, configure the virtualized environment that Python runs:
Benefits: Installation upgrades, uninstallation, and correction of Python libraries, suites, etc. do not affect the python environment in the physical machine and the Python environment in other virtual environments, and the program runs independently of each other.
Libraries that need to be installed:
Pip Install Virtualenv
Export Virtualenv_distrinutr=true
mkdir ~/work
CD ~work
Virtualenv Env_name (env or ENV recommended)
#为了不要每次都输入这样的命令, you can export Virtualenv_use_distribute = true unset drop this environment variable when not needed
Iii. activating the operating environment & exiting the operating environment
SOURCE Env/bin/activate
Deactivate
Iv. installation of Virtualenvwrapper (advanced tools)
1 Install Virtualenvwrapper 2 vim ~/. BASHRC34if [-f/usr/local/bin/virtualenvwrapper. SHthen5 Export workon_home = $HOME/. Virtualenvs6 Source/usr/local/bin/virtualenvwrapper. SH 7 fi 8 9 Source ~/.BASHRC
V. Entering the Environment View environment Delete environment
1 mkvirtualenv newenv 2 ls -la $HOME/. Virtualenvs3workon newenv4Workon5 Rmvirtualenv newenv
Configure the Python Combat development environment