问题重现:
PS C:\Windows\system32> pip install PIL
Collecting PILCould 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