我正在尝试执行Python脚本,但是我收到以下错误:
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
Run Code Online (Sandbox Code Playgroud)
完整的错误消息可以在这里找到.
我在Linux Mint 18.1 Serena OS上使用python 3.5.2
有人能告诉我为什么会这样,我该怎么解决?
- 我将我的 mac os 升级到最新的 MacOS Big Sur,更新后我以前用来运行 python 3.6.x/3.7.x 的应用程序现在没有打开/运行
Python 3.9 或更高版本运行良好。有什么办法可以在 MacOS BigSur 中运行 python3.6 或 3.7?
我正在尝试构建一个在 Big Sur 上使用 PyQt5 的非常基本的应用程序。
使用最新的 pyinstaller 开发版本,我构建的应用程序没有错误,但是当我启动它时,它在启动后立即崩溃。启动 exec 后,我立即出现分段错误app = QApplication(sys.argv)。
这是我的配置:
37 INFO: PyInstaller: 5.0.dev0
37 INFO: Python: 3.9.4
46 INFO: Platform: macOS-11.2.3-x86_64-i386-64bit
Run Code Online (Sandbox Code Playgroud)
我的代码,随python main.py作品一起启动。这也不是应用程序使用的外部文件的问题,因为它在使用它们之前就崩溃了。
import os
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
DEBUG = True
if __name__ == "__main__":
if DEBUG:
if getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS'):
print("Running in a Pyinstaller bundle.")
else:
print("Running in a normal Python process.")
for a in sys.argv:
print("sys.argv[]: {}".format(a))
print(sys.executable)
print(os.getcwd())
if DEBUG:
print("THIS …Run Code Online (Sandbox Code Playgroud) linux-mint ×1
pyinstaller ×1
pyqt5 ×1
python ×1
python-3.5 ×1
python-3.6 ×1
python-3.7 ×1
python-3.x ×1