No python environment running on the computer program -pyinstaller / dependent files

 

Pyinstaller installed in the pip

Verify successful, enter cmd in the python environment first, and then test whether you can import pyinstaller, pay attention to is the need for case-sensitive.

Package py file, first in the project right needs to be packaged file, select copy path. Then enter the packed instruction in cmd, the path copy and paste. Can be found in the Script folder dist folder packaged files.

 If not a single file, but also need some dependencies, it can be packaged together. Command is as follows:

pyinstaller-F -w [primary inlet file] -p [dependencies 1] -p [2 dependencies]

Guess you like

Origin www.cnblogs.com/JolinTalk/p/10960604.html