Linux使用pip3和pip安装numpy,scipy,matplotlib等第三方库
Linux安装Python3第三方库numpy,scipy,matplotlib:
sudo apt install python3-pip
pip3 install numpy
pip3 install scipy
pip3 install matplotlib
报错,安装matplotlib库需要安装python3-tk库:
sudo apt-get install python3-tk
pip3 install matplotlib
报错,安装matplotlib库需要安装nose库:
pip3 install nose
安装图像处理库:
pip3 install pillow
通过 from PIL import Image 测试是否安装成功。
安装Python2第三方库numpy,scipy,matplotlib:
sudo pip install numpy
sudo pip install scipy
sudo pip install matplotlib
sudo pip install nose
测试:
python
from numpy import *
import matplotlib.pyplot as plt
相关推荐
meylovezn 2020-09-15
wordmhg 2020-07-28
syThinkCool 2020-07-16
adamlovejw 2020-06-20
woxmh 2020-06-03
maybeyoucan 2020-05-17
jiahaohappy 2020-05-11
laohyx 2020-05-07
Tonybo 2020-04-27
liusarazhang 2020-04-10
tengyunjiawucom 2020-03-27
wangdaren 2020-03-27
Leonwey 2020-03-03
xinhao 2020-02-18
Jonderwu 2020-02-10
数据齿轮 2020-01-31
FrederickBala 2020-01-29
Laozizuiku 2020-01-13