简体   繁体   English

为python 3.x安装pygame,遇到困难

[英]Installing pygame for python 3.x, getting difficulties

I have just installed the latest version of python, 3.4.3 32 bit and the corresponding pygame. 我刚刚安装了最新版本的python,3.4.3 32位和相应的pygame。 I get this error when importing pygame 导入pygame时出现此错误

>>> import pygame
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import pygame
  File "C:\Python34\lib\site-packages\pygame\__init__.py", line 127, in <module>
    from pygame.base import *
ImportError: DLL load failed: The specified module could not be found.

Please help fix the error 请帮助修复错误

Try uninstalling Python 3.4 and installing Python 3.2, then reinstall the 3.2 version of pygame. 尝试卸载Python 3.4并安装Python 3.2,然后重新安装3.2版本的pygame。 I could not see a python 3.4 version of pygame when I looked on the pygame website and unless you specifically need the features of 3.4 pygame for Python 3.2 should work fine. 当我在pygame网站上查看时,我看不到python 3.4版本的pygame,除非你特别需要3.4 pygame for Python 3.2的功能应该可以正常工作。

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

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