python - _tkinter.TclError: Can't find a usable tk.tcl in the following directories -


i tried previous available solutions available on stackoverflow nothing seems work @ all. using 64-bit python , python 3.6.1 anaconda.

here receive error while run exe:

traceback (most recent call last):  file "c:\users\asgard\anaconda3\lib\site-packages\cx_freeze\initscripts\__startup__.py", line 14, in run     module.run()   file "c:\users\asgard\anaconda3\lib\site-packages\cx_freeze\initscripts\console.py", line 26, in run     exec(code, m.__dict__)   file "fbroi.py", line 80, in <module>     root = tk(classname=" roi calculator")   file "c:\users\asgard\anaconda3\lib\tkinter\__init__.py", line 2017, in __init__     self.tk = _tkinter.create(screenname, basename, classname, interactive, wantobjects, usetk, sync, use) _tkinter.tclerror: can't find usable tk.tcl in following directories:     {c:\users\asgard\desktop\ml proj\edcrawler\build\exe.win-amd64-3.6\tk} {c:/users/asgard/desktop/ml proj/edcrawler/build/exe.win-amd64-3.6/tcl/tk8.6} {c:/users/asgard/desktop/ml proj/edcrawler/build/exe.win-amd64-3.6/tk8.6} {c:/users/asgard/desktop/ml proj/edcrawler/build/lib/tk8.6} {c:/users/asgard/desktop/ml proj/edcrawler/lib/tk8.6} {c:/users/asgard/desktop/ml proj/edcrawler/build/library} 

copying tcl8.6 , tk8.6 directories here , there, don't seem work also.

ok, seems there no possible solution me. had rid of cx_freeze.

what works me this:

  1. downgrade python 3.3 or less because py2exe not support python 3.6. if you're using conda create virtual environment. allows installing python version want.
  2. get py2exe on python environment.
  3. use py2exe. works charm!

you might find useful : py2exe usage on stackoverflow.

for people using conda : python , conda


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -