我有 PyQt 的代码:
import sys
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from PyQt4.QtWebKit import *
def main():
page = raw_input('Escriu una web: ')
app = QApplication(sys.argv)
view = QWebView()
view.settings().setAttribute(QWebSettings.JavascriptEnabled, True)
view.load(QUrl(page))
view.setWindowTitle('Titanicus 0.1')
view.show()
app.exec_()
if __name__ == '__main__':
main()
我的 setup.py 文件是这样的:
import sys
from cx_Freeze import setup, Executable
setup(
name = "On Dijkstra's Algorithm",
version = "3.1",
description = "A Dijkstra's Algorithm help tool.",
executables = [Executable("nautilus.py")])
我已经建立了文件夹,但是当我尝试打开新的 exe 文件时,它返回了该错误:
File "ExtensionLoader_PyQt4_QtGui.py", line 11, in <module>
ImportError: No module named atexit
请帮忙!