【发布时间】:2018-03-09 22:26:53
【问题描述】:
Fatal Python error: (pygame parachute) Segmentation Fault
Traceback (most recent call last):
File "C:\Python34\lib\site-packages\pkg_resources\__init__.py", line 1150, in resource_exists
return get_provider(package_or_requirement).has_resource(resource_name)
File "C:\Python34\lib\site-packages\pkg_resources\__init__.py", line 1608, in has_resource
return self.has(self.fn(self.module_path, resource_name))
File "C:\Python34\lib\site-packages\pkg_resources\__init__.py", line 1663, in _has
"Can't perform this operation for unregistered loader type"
NotImplementedError: Can't perform this operation for unregistered loader type
我将我制作的一个 python 游戏转换成一个可执行文件。然后我去安装游戏,然后去运行它。当我运行可执行文件(刚刚安装)时,它在 cmd 提示符中给出了该错误,然后说应用程序停止工作。实际游戏没有运行,它立即停止工作。
我使用 cx_Freeze 将其转换为可执行文件。我正在运行 Python 3.4 并安装了正确的 cx_Freeze。
【问题讨论】:
-
您可能忘记在您的模块目录之一中包含
__init__.py文件 -
那么我该怎么做才能解决这个问题? @wpercy
标签: python python-3.x pygame cx-freeze