我正在尝试运行我编写的冻结 python 游戏,但是当我尝试运行 exe 时出现错误。我相信这是因为 NumPy,但我不太确定。这是错误:
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27
, in <module>
exec code in m.__dict__
File "game.py", line 1, in <module>
File "C:\Python27\lib\site-packages\pygame\__init__.py", line 251, in <module>
try: import pygame.surfarray
File "C:\Python27\lib\site-packages\pygame\surfarray.py", line 69, in <module>
import pygame._numpysurfarray as numpysf
File "C:\Python27\lib\site-packages\pygame\_numpysurfarray.py", line 48, in <m
odule>
import numpy
File "C:\Python27\lib\site-packages\numpy\__init__.py", line 147, in <module>
from core import *
AttributeError: 'module' object has no attribute 'sys'
有谁知道这里发生了什么,因为我无法弄清楚?任何帮助将不胜感激!
提前致谢, 内特