pip3安装Pillow错误的问题


python3.4,使用pip3 install pillow报如下错误:

Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-jmgsf0_x/pillow
Storing debug log for failure in /root/.pip/pip.log

这时候需要更新下pip版本:

sudo python3 -m pip install --upgrade pip

再使用上面的命令安装就提示成功了。

但是在PyCharm中使用时,from PIL import image还是不行

接下来,我们点开file->settings->project interpreter,双击pip,搜索pillow,点击pillow,左下角会有install,安装成功即可。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM