Quote:tkinter is Tkinter (capital 'T') on python 3
after starting python3.6.1 in the interactive mode of the linux-shell interpreter i have also tried:
>>>'import Tkinter'
the result:
Output:
>>> import Tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'Tkinter'
(Aug-08-2018, 12:53 PM)Larz60+ Wrote: [ -> ]tkinter is Tkinter (capital 'T') on python 3
It's the other way around.
nzca Wrote:after starting python3.6.1 in the interactive mode of the linux-shell interpreter i have also tried:
>>>'import Tkinter'
It's
import tkinter
for Python 3.
nzca Wrote:i am running python 2.7.6 and python 3.6.1 on linux mint 17.3 simultaneously.
Here a run on mint i use
pyenv with 3.7 install bye pyenv.
Can go back to default mint Python version to.
# python and pip set to 3.7
mint@mint ~ $ python -V
Python 3.7.0
mint@mint ~ $ pip -V
pip 10.0.1 from /home/mint/.pyenv/versions/3.7.0/lib/python3.7/site-packages/pip (python 3.7)
# Test tkinter okay
mint@mint ~ $ python
Python 3.7.0 (default, Jun 30 2018, 00:01:26)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tkinter
>>> exit()
# Going back to mint default setup
mint@mint ~ $ pyenv local system
# Default python 3 tkinter okay
mint@mint ~ $ python3
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tkinter
>>> exit()
# May need to install this if you have not done it.
mint@mint ~ $ sudo apt-get install python3-tk tk
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-tk is already the newest version (3.5.1-1).
tk is already the newest version (8.6.0+9).
0 upgraded, 0 newly installed, 0 to remove and 703 not upgraded.