简体   繁体   中英

pyqtgraph pyinstaller build exe file

I tried to make an *.exe file from my python application that uses pyqtgraph and the pyqt library using pyinstaller. Pyinstaller makes a single *.exe file without errors, but when I try to start it, I get an error that pyqtgraph is not found.

How can I build a single *.exe file using pyinstaller?

Pyinstaller does not support dynamic imports, which are used in the latest release of pyqtgraph (0.9.8). However, the latest development code on github ( http://github.com/pyqtgraph/pyqtgraph ) does not use any dynamic imports, and may work better with pyinstaller.

Another option is to try py2exe, which does have support for dynamic imports.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM