Ubuntu 18.04 installs pyenv, pyenv-virtualenv, virtualenv, Numpy, SciPy, Pillow, Matplotlib

Ubuntu 18.04 installs pyenv, pyenv-virtualenv, virtualenv, Numpy, SciPy, Pillow, Matplotlib

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 pyenv-virtualenv to manage the virtual environment. After the installation is complete, set it up.

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!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • How to install pyenv under Linux
  • Install pyenv and virtualenv to manage multiple versions and projects of Python
  • Steps to install Pyenv under Deepin
  • Tutorial on installation and use of pyenv in Mac

<<:  Vue mobile terminal determines the direction of finger sliding on the screen

>>:  Data Structure - Tree (III): Multi-way Search Tree B-tree, B+ tree

Recommend

docker-maven-plugin packages the image and uploads it to a private warehouse

Table of contents 1. Introduction to docker-maven...

Detailed explanation of the new background properties in CSS3

Previously, we knew several attributes of backgro...

Detailed example of reading speed of js objects

1. Accessing literals and local variables is the ...

Detailed introduction to deploying k8s cluster on centos7 system

Table of contents 1 Version and planning 1.1 Vers...

Docker Basic Tutorial: Detailed Explanation of Dockerfile Syntax

Preface Dockerfile is a script interpreted by the...

Install mysql5.7 on Ubuntu 18.04

Ubuntu 18.04 installs mysql 5.7 for your referenc...

Achieve 3D flip effect with pure CSS3 in a few simple steps

As a required course for front-end developers, CS...

Discussion on horizontal and vertical centering of elements in HTML

When we design a page, we often need to center th...

Use of Linux passwd command

1. Command Introduction The passwd command is use...

js precise calculation

var numA = 0.1; var numB = 0.2; alert( numA + num...

How to configure ssh to log in to Linux using git bash

1. First, generate the public key and private key...

How to run Python script on Docker

First create a specific project directory for you...

CSS to achieve Tik Tok subscription button animation effect

I was watching Tik Tok some time ago and thought ...

Using CSS3's 3D effects to create a cube

Learning to use CSS3's 3D effects to create a...