python安装PIL,numpy模块
·
python安装PIL模块
PIL(Python Imaging Library),图像处理模块
1.安装Pillow
pip install Pillow
2.如果报错,就更新pip,之后再重复pip install Pillow。
python -m pip install --upgrade pip
3.检查是否成功,在开发工具中使用 from PIL import Image,看是否报错。
python安装numpy模块
numpy通用的数组处理包
1.使用pip安装模块,安装numpy
pip install numpy
安装完后验证
from numpy import *
print(random.rand(4,4))
如果能够输出随机矩阵,即安装成功

更多推荐
所有评论(0)