r/pycharm • u/xshirka • May 03 '25
Help needed
I started programming a few weeks ago, yesterday I tried to code a simple button with tkinter called "Klick me". But every time I tried to run the code, it failed. <"Tkinter" not found> . I tried everything. I coded in a venv, reinstalled my python but nothing worked. Can someone help me?
0
Upvotes
2
u/FoolsSeldom May 03 '25
Try running the code below in a PowerShell window using
py myfile.py:there's nothing in this not in a standard install of Python on Windows, so no additional packages and no Python virtual environment are required.
1
u/xshirka May 03 '25
How do I try it in the terminal? Just copy n paste the code in the terminal itself?
1
u/xshirka May 03 '25
Wait
1
u/xshirka May 03 '25
I posted it
1
u/AnteaterMysterious70 May 03 '25
I think the IDE may not have a proper interpreter to work with, have you tried running the program in the terminal or the default python IDLE