python cannot see ActiveTcl after installation

312 Views Asked by At

First python cannot find _tkinter module: python3 -m _tkinter /Users/owner/.pyenv/versions/3.8.2/bin/python3: No module named _tkinter

I tried installing ActiveTcl and it did successfully. However, my existing Python still cannot find tkinter

How do I configure python to pick up the ActiveTcl and tkinter?

1

There are 1 best solutions below

0
JR DEV On

Tkinter works fine for python installed using Homebrew.

The culprit is "pyenv" and using it to install Python in multiple versions. In this case, the Python runtime fails to find the _tkinter module even after updating the Path variable.

Python not configured for Tk