小编Ded*_*ecz的帖子

如何在Python 3.4上安装PyGame?

所以我有这个小问题.当我尝试为Python 3.4安装PyGame时,我下载了一个.whl(wheel?)文件,但不知道如何使用它.有些人告诉我有关pip的事情,但不知道如何使用/安装它.

python pygame pip python-3.4

9
推荐指数
2
解决办法
6万
查看次数

如何安装这个轮子?

我设法安装了pip,但是当我使用pip安装下载的轮子时,它会打印:

C:\Python34\Scripts\pip install pygame-1.9.2a0-cp34-none-win_amd64.whl
Requirement 'pygame-1.9.2a0-cp34-none-win_amd64.whl' looks like a filename, but the file does not exist
pygame-1.9.2a0-cp34-none-win_amd64.whl is not a supported wheel on this platform
Run Code Online (Sandbox Code Playgroud)

该文件与pip位于同一文件夹(Scripts)中.

我也尝试过使用该wheel工具:

C:\Python34\Scripts\wheel install pygame-1.9.2a0-cp34-none-win_amd64.whl
Traceback (most recent call last):
  File "C:\Python34\lib\site-packages\wheel\tool\__init__.py", line 358, in main
    args.func(args)
  File "C:\Python34\lib\site-packages\wheel\tool\__init__.py", line 301, in install_f
    args.wheel_dirs, args.force, args.list_files)
  File "C:\Python34\lib\site-packages\wheel\tool\__init__.py", line 202, in install
    raise WheelError("No such wheel file: {}".format(req))
wheel.tool.WheelError: No such wheel file: pygame-1.9.2a0-cp34-none-win_amd64.whl
During handling of the above exception, another exception occurred: …
Run Code Online (Sandbox Code Playgroud)

python pygame pip python-3.4 python-wheel

4
推荐指数
1
解决办法
3万
查看次数

标签 统计

pip ×2

pygame ×2

python ×2

python-3.4 ×2

python-wheel ×1