Before I installed the centos alone python3.6, we all know centos comes python2.7, by entering python, and to control python3 want to use python2, or python3, and now you want to run under linux standalone environment, I had to see how the environment will be split apart, and I recommend using anaconda3 to manage
installation:
https://www.anaconda.com/distribution/
Download on the Web site, directly loaded onto linux, simple operation, shell installed, the next step up on the line
Set the environment variable:
bin absolute path of the directory to find the environment variable, test input conda --version View version
View existing environment
conda info - and conda info --envs
* It is used for the environment
Creation Environment
conda create -n name python = environment version number such as: Conda the Create -n the Test python = 3.6
the Test python = 3 # 3 If you write, you will find the latest version 3 conda create -n
Activation environment
source activate Environmental name
Exit the environment (to exit the current environment)
source deactivate
View installation package (similar to pip list)
conda list
conda list -n environment name
Use of third-party packages
Conda install Requests # installation package conda remove requests # delete package
Import third-party package file
conda env export > environment.yaml conda env export > requirements.txt
Third-party packages to save a file
conda env create -f environment.yaml