安装了pillow,但是cannot import PIL module

(XPS15  win10)在安装抖音机器人的python包时,用pip3 install -rrequirement.txt  where pip3: python36)安装在python36里面。想使用cmd来运行python脚本时,activate python3 -> python之后,进入的是anaconda python3.5


就是因为安装了多个python,而且又没有注意到pip3的安装路径,所以出现安装了pillow,但是cannot import PIL module


解决办法:在环境变量里将python36以及python36/script路径提前到anaconda之前,这样activate python3 -> python之后,进入的就是python3.6,那里已经装好了pillow。

猜你喜欢

转载自blog.csdn.net/henghen9943/article/details/80796191