Python3安装 PIL(Python Image Library)
pip install Pillow
报错
/usr/local/opt/python/bin/python3.7: No module named pip
安装pip即可
wget https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py
安装 PIL时太慢怎么办?
1、设置超时时间:pip –default-timeout=100 install Pillow
2、不使用缓存:pip –no-cache-dir install Pillow
3、使用国内源:pip install web.py -i http://pypi.douban.com/simple –trusted-host pypi.douban.com
使用国内源提高下载速度
pip install -i https://pypi.doubanio.com/simple/ 包名
可用的国内源
豆瓣(douban) http://pypi.douban.com/simple/
关注微信公众号:【皮卡战记】
