Skip to content Skip to sidebar Skip to footer

Can Not Run .exe Packed By Pyinstaller

My source code I am using pyfiglet in my project and when compiling the .exe it returns Traceback (most recent call last): File 'pkg_resources\__init__.py', line 358, in get_prov

Solution 1:

You should probably add pyfiglet to your data list in your spec file. You can do this yourself, by editing the spec file. Otherwise, you could build with something like

pyinstaller --add-data "venv\Lib\site-packages\pyfiglet;./pyfiglet" Dragon_Game.py

Where the path leads to the pyfiglet file inside your PC/environment.

See this question.

Post a Comment for "Can Not Run .exe Packed By Pyinstaller"