Python 3.4 中的 Pygame 错误 | 珊瑚贝

Pygame error in Python 3.4


报错就行 import pygame:

1
ImportError: DLL load failed: The specified module could not be found.

从 pygame _ init_ 中的这一行开始:

1
from pygame.base import *

我正在使用 Python 3.4 和 Pygame-1.9.2a0.win32-py3.2.msi


目前似乎没有官方的 Pygame 版本与 Python 3.4 兼容。您可以将您的 Python 降级(到 3.2 或 2.7)或使用非官方 Pygame 版本,例如此处托管的版本。

不管怎样,这个问题与 Pycharm 无关。

更新:最近(2016 年 12 月),PyGame 重新焕发生机。现在,Pypi 上有所有当前 Python 版本的官方 PyGame 下载。

  • 我应该使用哪个非官方的?
  • @Emily Python 3.4 的那个。您必须在页面上按 Ctrl F pygamea€‘1.9.2a0.win32a€‘py3.4.exe,因为链接会调用一些 JS 并且不能在此处进行热链接。
  • @Player72:猜猜他们改了名字。但是 CPython 是主流 Python,其中 3.4 是最新的分支,所以应该不重要。


来源:https://www.codenong.com/23585222/

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_9406.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?