Python pygame 3.3:ImportError:DLL加载失败,不是有效的Win32应用程序
我有python 3.3.5,我下载了pygame 3.3。当我在shell中键入import pygame时,它会显示:Python pygame 3.3:ImportError:DLL加载失败,不是有效的Win32应用程序,python,python-3.3,Python,Python 3.3,我有python 3.3.5,我下载了pygame 3.3。当我在shell中键入import pygame时,它会显示: Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import pygame File "C:\Python33\lib\site-packages\pygame\__init__.py", line 127, in <modul
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import pygame
File "C:\Python33\lib\site-packages\pygame\__init__.py", line 127, in <module>
from pygame.base import *
ImportError: DLL load failed: %1 is not a valid Win32 application.
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
导入pygame
文件“C:\Python33\lib\site packages\pygame\\uuuu init\uuuuu.py”,第127行,在
从pygame.base导入*
ImportError:DLL加载失败:%1不是有效的Win32应用程序。
我的游戏怎么了?是因为我是3.3.5,而pygame是3.3吗?有几件事需要尝试:
importorror
会产生误导,根本找不到二进制文件。尝试将二进制文件放在您的路径上您可以使用
python-vvv
在详细模式下运行python,以获取有关ImportError