Ubuntu 18.04 install pyenv, pyenv-virtualenv, virtualenv, Numpy, SciPy, Pillow, Matplotlib
1. At present, there are many Python version management tools, and pyenv is a relatively easy to use one, which is installed as follows:
Enter:
Git clone https://github.com/pyenv/pyenv.git ~ / .pyenvecho 'export PYENV_ROOT= "$HOME/.pyenv" > ~ / .bashrcecho' export PATH= "$PYENV_ROOT/bin:$PATH" > > ~ / .bashrcecho-e'if command-v pyenv 1 > / dev/null 2 > & 1; then\ neval "$(pyenv init -)"\ nfi' > > ~ / .bashrcsource ~ / .bashrc
If there is no problem, the installation is successful. During installation, there is a prompt for missing dependencies and packages, and what packages are missing and what packages are installed.
2. Install the plug-in pyenv-virtualenv of pyenv to manage the virtual environment, and set it up after installation.
3. Install virtualenv to the system environment and use it with pip
4. Install Numpy
Numpy is the core library for scientific computing in Python. It provides high-performance multidimensional array objects and related tools, as shown in the figure.
5. Install SciPy, which is based on Numpy and provides a large number of functions for calculating and manipulating arrays, which are very useful for different types of scientific and engineering calculations, as shown in the figure.
6. Install Pillow, which is derived from PIL (Python Imaging Library) and is the image processing library of Python, as shown in the figure.
7. Install Matplotlib, which is a drawing library, as shown in the figure
Summary
The above is the Ubuntu 18.04 introduced by the editor to install pyenv, pyenv-virtualenv, virtualenv, Numpy, SciPy, Pillow, Matplotlib. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to the website!
If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!