Good evening Im new to python and I wanted to make an executable with pyinstaller but Im gettin the following error. FileNotFoundError: [Errno 2] No such file or directory: ‘C:UsersalexaPycharmProjectsRT_HMapdistmaincmlibversion.txt’ Does anybody know what it means and how I can solve it ?
Edit: the complete error would be enter image description here
Advertisement
Answer
‘C:UsersalexaPycharmProjectsRT_HMapdistmaincmlibversion.txt’
This just means that the file ‘version.txt’ doesn’t exist
One of the main goals of a PyInstaller-created executable is for users to not need anything installed on their machine. one of the packages requires a version.txt file. You can add this file to the build using the –add-data option. Here’s an example