Linux环境 pip install PIL失败

来源:互联网 发布:mysql数据库接口 编辑:程序博客网 时间:2024/05/21 06:15

环境:

Ubuntu 14.04

python 2.7.6

pip 1.5.4


问题1:

pip install PILDownloading/unpacking PIL  Could not find any downloads that satisfy the requirement PIL  Some externally hosted files were ignored (use --allow-external PIL to allow).Cleaning up...No distributions at all found for PILStoring debug log for failure in pip.log

解决方案:

pip install PIL --allow-external PIL --allow-unverified PIL

问题2:

error:could not create '/usr/local/lib/python2.7/dist-packages/PIL': Permission denied


解决方案:

sudo pip install PIL --allow-external PIL --allow-unverified PIL



0 0