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,安装成功即可。

posted @ 2019-04-23 16:51  lemon6959  阅读(3347)  评论(0)    收藏  举报