Hi i have created a python (.PY) file which uses tkinter package inside it and excuted perfectly in spyder.
Now i am trying to convert it to .EXE file using pyinstaller package, once i convert tried to run and getting below error
The version of packages are as below:
-
Python 3.11.7
-
import tkinter
tkinter.TkVersion
- 8.6 –
- import tkinter
tcl = tkinter.Tcl()
print(tcl.call(“info”, “patchlevel”))
- 8.6.12 –
Thanks in advance
12
Did you run pyinstaller with –paths?
pyinstaller --paths projectName/lib/python3.7/site-packages script.py
I recommend you to use venv for every projects
1