My stock project environment configuration process record (including python packaging method linux windows)

Stock project configuration environment from source code (V1.0)

Windows

If you just run, you only need these two

pip3 install PyQt5 -i https://pypi.douban.com/simple
pip install -U matplotlib
pip install pandas

Because I also need to adjust the UI interface, I also need to install qtdesigner

pip3 install PyQt5-tools -i https://pypi.douban.com/simple
pip3 install PyQt5designer -i https://pypi.douban.com/simple

Refer to this tutorial for the specific process. It is highly recommended to use the virtual environment under anoconda to do this.
pyqt5 installation tutorial

linux

The previous process is the same as that of windows, but it needs to solve the Chinese display problem of matplotlib. Refer to my other blog
ubuntu20 matplotlib usage summary (basic learning of Chinese garbled characters)

packaging process

windows

Refer to the link for
packaging under anaconda.
For the program packaging with a deep learning framework such as torch in the project, please refer to the following link, which can effectively solve many other
errors
. Icon conversion URL
to make a good picture

After the packaging is complete, put the .db database under the .exe folder

Run directly under windows10, windows11 shows a little change

linux

Linux packaging is almost the same, you can refer to this link
how to package Python programs into linux executable files

90923 INFO: Building PKG (CArchive) PKG-00.pkg
in Linux package, I have been stuck in this place, later I put the folder corresponding to this program is a project subfolder, I will take it out and create a new one I haven’t been stuck here since I created a project, but the packaging step does take some time

from PyQt5 import QtCore ImportError: DLL load failed: The specified module could not be found.

I seem to have solved this problem by deleting the original python environment, including the cache where the original environment is located, deleting the original python environment variables, and then re-downloading python. I am not sure about this problem, it is too metaphysical. this thing.

Guess you like

Origin blog.csdn.net/qin_liang/article/details/127372047