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

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

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

sudo python3 -m pip install --upgrade pip

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

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

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

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄