I\'m attempting to run PyInstaller on a CLI app I am building in Python using the Click library. I\'m having trouble building the project using PyInstaller. PyInstaller has
This error:
pkg_resources.DistributionNotFound: The 'myapp' distribution was not found and is required by the application
indicates that this package is not on PYTHONPATH
. I fixed it on Windows with:
set PYTHONPATH=.
adjust to your OS of choice.
In addition to the path problem, there is:
setup(
entry_points = '''
[console_scripts]
myapp=myapp.main:entry_point
''',
a = Entrypoint('myapp', 'console_scripts', 'myapp')
According to setup.py, it looks like your entry point is myapp.main
not myapp
. So you may need:
a = Entrypoint('myapp', 'console_scripts', 'myapp.main')