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))

如果能够输出随机矩阵,即安装成功

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐