pip install PIL不会安装到virtualenv中 [英] pip install PIL doesn't install into virtualenv

查看:60
本文介绍了pip install PIL不会安装到virtualenv中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何安装PIL?

>pip install PIL

Downloading/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 PIL 
Storing debug log for failure in /root/.pip/pip.log 

>pip uninstall PIL
Can't uninstall 'PIL'. No files were found to uninstall.

推荐答案

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

这是由于新版Pip中的更改所致.运行pip --version,我敢打赌您正在运行 1.5 .请在此处中查看更改日志.这种新的默认行为增强了安全性.在PIL的情况下,您要安装的文件实际上来自 effbot.org (因此为--allow-external),而PyPi没有校验和以确保有效性(因此为--allow-unverified).

This is due to changes in the new version of Pip. Run pip --version and I'm willing to bet you are running 1.5. See the changelog here. This new default behavior enhances security. In PIL's case, the file you are installing actually comes from effbot.org (thus --allow-external) and PyPi doesn't have a checksum to guarantee validity (thus --allow-unverified).

此外,您可以考虑将枕头替换为PIL.

Also, you might consider using the Pillow replacement to PIL.

这篇关于pip install PIL不会安装到virtualenv中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆