Aug-08-2018, 08:14 AM
Quote:i understand now why does python3 give error because i am using /usr/bin/python3 but python3 command doesn't mean this path. how to change my python3 command path ? Thx.
the same problem by me.
i am running python 2.7.6 and python 3.6.1 on linux mint 17.3 simultaneously.
the output of 'which python' is:
Output:/usr/bin/python
the output of 'which python3' is: Output:/usr/local/bin/python3
the output of 'echo $PATH' is: Output:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
with the command 'python3' in the linux-terminal i am starting the python 3.6.1 version interactivemode of the interpreter and ... it works normally ... except that when i import 'tkinter module' with the command 'import tkinter' it gives me error:
Output:Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/tkinter/__init__.py", line 36, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'
some ideas how to solve this error?
thanks in advance!