Python安装PIL遇到‘Could not find a version that satisfies the requirement PIL’

问题重现:

PS C:\Windows\system32> pip install PIL

Collecting PIL
  Could not find a version that satisfies the requirement PIL (from versions: )
  Some externally hosted files were ignored as access to them may be unreliable (use --allow-external PIL to allow).

No matching distribution found for PIL

原因:

<p class="cye-lm-tag" style="border: 0px rgb(51, 58, 51); padding-bottom: 0px; margin-top: 0px; margin-bottom: 1em; clear: both; padding-top: 0px;">This is due to changes in the new version of Pip. Run <span style="font-family:Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif;font-size:14px;color:#333333;"><span style="line-height: 19px; white-space: pre-wrap; background-color: rgb(204, 232, 207); border-color: rgb(51, 58, 51); padding: 1px 5px;">pip --version</span></span> and I'm willing to bet you are running <span style="border: 0px; padding: 0px; margin: 0px;">1.5</span>. See the changelog <a target=_blank target="_blank" href="https://github.com/pypa/pip/blob/c2361e72da2c31a3596d49dc5fccb7d2bdb8c032/CHANGES.txt#L12-L15" style="border: 0px; padding: 0px; margin: 0px;">here</a>. This new default behavior enhances security. In PIL's case, the file you are installing actually comes from <span style="border: 0px; padding: 0px; margin: 0px;">effbot.org</span> (thus <span style="font-family:Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif;font-size:14px;color:#333333;"><span style="line-height: 19px; white-space: pre-wrap; background-color: rgb(238, 238, 238); padding: 1px 5px;">--allow-external</span></span>) and PyPi doesn't have a checksum to guarantee validity (thus <span style="font-family:Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sa
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值