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
#9
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 interactive
mode 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!
Reply


Messages In This Thread
RE: Python3 No Module Named gi, Tkinter, setuptools and more... On Fedora Linux - by nzcan - Aug-08-2018, 08:14 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  no module named 'docx' when importing docx MaartenRo 1 995 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  Problem with pymodbus - ModuleNotFoundError: No module named 'pymodbus.client.sync' stsxbel 2 24,123 Nov-02-2023, 08:20 AM
Last Post: South_east
  ModuleNotFoundError: No module named 'requests' Serg 18 2,775 Oct-29-2023, 11:33 PM
Last Post: Serg
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 1,531 Oct-04-2023, 02:43 PM
Last Post: mandaxyz
  ModuleNotFoundError: No module named 'PyPDF2' Benitta2525 1 1,622 Aug-07-2023, 05:32 AM
Last Post: DPaul
  ModuleNotFoundError: No module named 'eyed3' Wimpy_Wellington 2 1,406 Jul-10-2023, 03:37 AM
Last Post: Wimpy_Wellington
  How to fix this error: ModuleNotFoundError: No module named 'notears' yaoyao22 2 1,078 Jul-09-2023, 11:24 AM
Last Post: yaoyao22
  Help with pyinstaller "No module named" korenron 9 9,464 Jun-15-2023, 12:20 PM
Last Post: snippsat
  Problem with Pyinstaller. No module named '_tkinter' tonynapoli2309 0 1,061 May-15-2023, 02:38 PM
Last Post: tonynapoli2309
  ModuleNotFoundError: No module named 'omsdk.sdkproto' donvito7 4 1,918 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