+ 1
Pyinstaller can not find the images for me to upload.
I am using the command: pyinstaller Archivo.pyw, and inside I have several routes where the images are, but he can not find them.
3 Respostas
+ 1
ohh, you have to write the location relative to the .py file, or absolute location( I only do relative like imagepath\image.gif, it's better practice) and python can only open gif and another one format, not png,jpeg etc. you have to be careful about that..
+ 1
Are you sure you have your image in .ico format? use photoshop or just online ico converter if you have image in other format. And after you have .ico file use the syntax in pyinstaller --icon="[Drive:\][\pathname]image.ico" before the filename, for example for me the command is:
pyinstaller --onefile --icon="d:\soft\landmaker\pics\icon.ico" d:\soft\landmaker\graph.py
+ 1
I mean within the program, not the icon.