Hello amazing stack overflow folks, I want to ask you for some assistance in this issue. I have a Python script that needs several dependencies and python uses a different parent file path thus leading to an issue each time I convert .py to .exe using pyinstaller. I've attempted to remove the build directory and transfer the file from the dist directory to the location of the other dependencies but the problem continues.
Asked
Active
Viewed 327 times
0
-
did you check with absolute path ? – Naga kiran Aug 16 '21 at 10:38
-
yes, sir @Nagakiran. I did it too, but it didn't solve the problem. – Mersan Canonigo Aug 16 '21 at 10:42
-
`pyinstaller --onefile -w 'filepath.py'`i hope you ran this command in cmd prompt, which is activated with referenced python environment and pyinstaller installation in specific enviroment – Naga kiran Aug 16 '21 at 10:46
-
I have tried it too. – Mersan Canonigo Aug 16 '21 at 10:54
-
If you're using `--onefile`: [this](https://stackoverflow.com/questions/7674790/bundling-data-files-with-pyinstaller-onefile) made my day.. (I used [Jonathon Reinhart's answer](https://stackoverflow.com/a/44352931/14278613)) – gfdsweds Aug 17 '21 at 14:48
-
please debug with `--onedir`. – gfdsweds Aug 18 '21 at 12:42