Aug-22-2020, 04:39 AM
i have python installed on mx 19.2
from xterm
bill@mx:~
$ python -V
Python 2.7.16
bill@mx:~
$ python3 -V
Python 3.7.3
bill@mx:~
bill@mx:~
$ whereis python
python: /usr/bin/python2.7 /usr/bin/python3.7 /usr/bin/python3.7m /usr/bin/python /usr/lib/python2.7 /usr/lib/python3.7 /usr/lib/python2.6 /etc/python2.7 /etc/python3.7 /etc/python /usr/local/lib/python2.7 /usr/local/lib/python3.7 /usr/include/python2.7 /usr/include/python3.7m /usr/share/python /usr/share/man/man1/python.1.gz
bill@mx:~
$
bill@mx:~
$ sudo apt install python3.7 python3-tk
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-tk is already the newest version (3.7.3-1).
python3.7 is already the newest version (3.7.3-2+deb10u2).
python3.7 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
bill@mx:~
if i run a script dloaded from the net in geaney i get
import tkinter as tk
ImportError: No module named tkinter
help please
from xterm
bill@mx:~
$ python -V
Python 2.7.16
bill@mx:~
$ python3 -V
Python 3.7.3
bill@mx:~
bill@mx:~
$ whereis python
python: /usr/bin/python2.7 /usr/bin/python3.7 /usr/bin/python3.7m /usr/bin/python /usr/lib/python2.7 /usr/lib/python3.7 /usr/lib/python2.6 /etc/python2.7 /etc/python3.7 /etc/python /usr/local/lib/python2.7 /usr/local/lib/python3.7 /usr/include/python2.7 /usr/include/python3.7m /usr/share/python /usr/share/man/man1/python.1.gz
bill@mx:~
$
bill@mx:~
$ sudo apt install python3.7 python3-tk
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-tk is already the newest version (3.7.3-1).
python3.7 is already the newest version (3.7.3-2+deb10u2).
python3.7 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
bill@mx:~
if i run a script dloaded from the net in geaney i get
import tkinter as tk
ImportError: No module named tkinter
help please