您的位置:首页 > 运维架构 > Linux

Linux入门(10)——Ubuntu16.04使用pip3和pip安装numpy,scipy,matplotlib等第三方库

2017-04-21 15:59 1001 查看
安装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


  安装图像处理库:

sudo pip install pillow


通过 from PIL import Image 测试是否安装成功。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: