1. There are many Python version management tools at present. Pyenv is a relatively easy-to-use one. The installation is as follows: enter: 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 If there are no problems, the installation is successful. During the installation process, there will be prompts about missing dependencies and packages. Install the packages that are missing. 2. Install the pyenv plug-in 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. The installation is shown in the figure. 5. Install SciPy, which is based on Numpy and provides a large number of functions for calculating and operating arrays. These functions are very useful for different types of scientific and engineering calculations. The installation is as shown in the figure. 6. Install Pillow, which is derived from PIL (Python Imaging Library), an image processing library for Python. The installation is as shown in the figure. 7. Install Matplotlib, which is a drawing library. Install it as shown in the figure. Summarize The above is the introduction of Ubuntu 18.04 installation of pyenv, pyenv-virtualenv, virtualenv, Numpy, SciPy, Pillow, Matplotlib. I hope it will be helpful to everyone. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: Vue mobile terminal determines the direction of finger sliding on the screen
>>: Data Structure - Tree (III): Multi-way Search Tree B-tree, B+ tree
Table of contents 1. Introduction to docker-maven...
Previously, we knew several attributes of backgro...
1. Accessing literals and local variables is the ...
Table of contents 1 Version and planning 1.1 Vers...
Preface Dockerfile is a script interpreted by the...
Ubuntu 18.04 installs mysql 5.7 for your referenc...
As a required course for front-end developers, CS...
When we design a page, we often need to center th...
1. Command Introduction The passwd command is use...
var numA = 0.1; var numB = 0.2; alert( numA + num...
1. First, generate the public key and private key...
First create a specific project directory for you...
I was watching Tik Tok some time ago and thought ...
Learning to use CSS3's 3D effects to create a...
1. Call the parent component method directly thro...