pip install PIL doesn't install into virtualenv

后端 未结 2 1309
执念已碎
执念已碎 2020-12-12 14:11

How do I install PIL?

>pip install PIL

Downloading/unpacking PIL
  Could not find any downloads that satisfy the requirement PIL  
  Some externally host         


        
2条回答
  •  Happy的楠姐
    2020-12-12 15:00

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

    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).

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

提交回复
热议问题