I have a python program:

import sys
from PySide.QtCore import *
from PySide.QtGui import *
from PySide.QtWebKit import *


app = QApplication(sys.argv)

web = QWebView()
web.load(QUrl("htpp://www.google.com"))
web.show()
web.resize(650, 750)
web.setWindowTitle('Website')

sys.exit(app.exec_())

I used google.com just for example. But if i want to make an executable of this program with py2exe but it wont work. I get this error:

enter image description here

With other programs without PySide it does work. But with PySide it doesnt. How can I make it work?

有帮助吗?

解决方案

You need Microsoft Visual C runtime.

You should take a look at this: http://qt-project.org/wiki/Packaging_PySide_applications_on_Windows . In the py2exe tutorial it explains about the runtime you should install.

其他提示

You are missing a DLL. The DLL in question can be (at least formerly) obtained from Microsoft by downloading their free compiler package.

Alternatively, ensure that this process has the right paths set to find the DLL in question.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top