MovieHeavens
v1.0.1
Pyqt5-based movie search tool, in order to avoid looking for various advertisements during the movie, as well as various page jumps
Under the command line
pip install - r requirements . txt
python3 movies . pyUnder Linux
sudo apt-get install python3-pip
pip3 install pyinstaller
bash build.shUnder Windows
# only python3 is supported
pip install pyinstaller
# -w 不能省略,不然会运行过程中会控制台界面
pyinstaller -F -w ./movies.py ./movieSource/MovieHeaven.py ./movieSource/fake_user_agent.pyThen two directories will be generated in the current folder, and the dist directory has an executable program
After packaging, it cannot be executed normally. Try to remove the packaging parameter -w , and then start the program on the command line and take a look at the console output error message.
ModuleNotFoundError: No module named 'PyQt5.sip'
Solution
Package with the following command
pyinstaller -F -w ./movies.py ./movieSource/MovieHeaven.py ./movieSource/fake_user_agent.py --hidden-import PyQt5.sip