Python Forum
Python3 No Module Named gi, Tkinter, setuptools and more... On Fedora Linux
Thread Rating:
  • 3 Vote(s) - 3.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python3 No Module Named gi, Tkinter, setuptools and more... On Fedora Linux
#11
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'
Reply
#12
(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.
Reply
#13
Quote:It's the other way around.
sorry about that!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  no module named 'docx' when importing docx MaartenRo 1 842 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  Problem with pymodbus - ModuleNotFoundError: No module named 'pymodbus.client.sync' stsxbel 2 23,600 Nov-02-2023, 08:20 AM
Last Post: South_east
  ModuleNotFoundError: No module named 'requests' Serg 18 2,508 Oct-29-2023, 11:33 PM
Last Post: Serg
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 1,416 Oct-04-2023, 02:43 PM
Last Post: mandaxyz
  ModuleNotFoundError: No module named 'PyPDF2' Benitta2525 1 1,482 Aug-07-2023, 05:32 AM
Last Post: DPaul
  ModuleNotFoundError: No module named 'eyed3' Wimpy_Wellington 2 1,311 Jul-10-2023, 03:37 AM
Last Post: Wimpy_Wellington
  How to fix this error: ModuleNotFoundError: No module named 'notears' yaoyao22 2 1,020 Jul-09-2023, 11:24 AM
Last Post: yaoyao22
  Help with pyinstaller "No module named" korenron 9 8,871 Jun-15-2023, 12:20 PM
Last Post: snippsat
  Problem with Pyinstaller. No module named '_tkinter' tonynapoli2309 0 994 May-15-2023, 02:38 PM
Last Post: tonynapoli2309
  ModuleNotFoundError: No module named 'omsdk.sdkproto' donvito7 4 1,819 Oct-20-2022, 02:56 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020