Pip “Could not find a that satisfies the requireme

2020-06-01 07:25发布

When I try to install PyGame with:pip install pygame it says

Collecting pygame

Could not find a version that satisfies the requirement pygame (from versions: )
No matching distribution found

I believe that I am using the most recent version, 8.1.1. I am using Python 3.5.1, on Windows 8.1. I have looked at other answers for this problem and none worked for me. Thanks for any help.

标签: python pip
1条回答
一夜七次
2楼-- · 2020-06-01 08:09

pygame is not distributed via pip. See this link which provides windows binaries ready for installation.

  1. Install python
  2. Make sure you have python on your PATH
  3. Download the appropriate wheel from this link
  4. Install pip using this tutorial
  5. Finally, use these commands to install pygame wheel with pip

    • Python 2 (usually called pip)

      • pip install file.whl
    • Python 3 (usually called pip3)

      • pip3 install file.whl

Another tutorial for installing pygame for windows can be found here. Although the instructions are for 64bit windows, it can still be applied to 32bit

查看更多
登录 后发表回答