简体   繁体   English

Python 3.4中的Pygame错误

[英]Pygame error in Python 3.4

The error is on the line import pygame: 错误是在行上导入pygame:

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

from this line in pygame _ init_ : 从pygame _ init_的这一行开始:

from pygame.base import *

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

It seems no official Pygame release is compatible with Python 3.4 at the moment. 目前似乎还没有正式的Pygame版本与Python 3.4兼容。 You could downgrade your Python (to 3.2 or 2.7) or use an unofficial Pygame release, like the ones hosted here . 您可以将Python降级(至3.2或2.7),也可以使用非官方的Pygame版本,例如此处托管的版本。

Either way, the issue is not related to Pycharm. 无论哪种方式,问题都与Pycharm无关。

Update : Recently (December 2016), PyGame has come back to life. 更新 :最近(2016年12月),PyGame恢复了活力。 There are now official PyGame downloads for all current Python versions on Pypi . 现在Pypi上已经有适用于所有当前Python版本的PyGame官方下载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM