Ubuntu 18.04安装 pyenv、pyenv-virtualenv、virtualenv、Numpy、SciPy、Pillow、Matplotlib

 

 

 

1, there are a lot of Python version management tool, pyenv is a relatively easy to use, install the following:

Input:

git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n  eval "$(pyenv init -)"\nfi' >> ~/.bashrc
source ~/.bashrc

There is no problem that the installation was successful. Lack of dependence missing package prompt, what is missing package security package what occurred during installation.

2, the installation pyenv plug pyenv-virtualenv to manage the virtual environment, set about the installation is complete,

 3, install virtualenv to use with the system environment and pip

 4, installation Numpy

Python is Numpy core libraries for scientific computing, which provides a high-performance multi-dimensional array of objects, and tools, as shown in FIG installation,

 5, SciPy installation, which is based Numpy, provides a large number of functions and operation of the array is calculated, the calculation is very useful for these functions of different types of science and engineering, FIG installation,

 6, mounting Pillow, which is derived from PIL (Python Imaging Library), is an image processing library Python, as shown in FIG installation,

 7, the installation Matplotlib, as it is a gallery, FIG installation,

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/booturbo/p/11897957.html