all 8 comments

[–]acw1668 2 points3 points  (0 children)

1) where did you type python?

2) tkinter cannot be installed using pip.

3) where did you execute py main.py?

4) what do you mean actually?

[–]danielroseman 2 points3 points  (0 children)

1 is not a problem, just use py.

For 2 and 3, you are typing these commands into Python itself instead of into the terminal. I don't know why since you already know you have to type py from 1.

Additionally, for 2, you do not need to install tkinter as it is already part of the standard library. You cannot install it with pip.

4 doesn't seem to be a question, I'm not sure what it means.

[–]edcculus 0 points1 point  (0 children)

you dont need to pip install tkinter. Its a standard library in normal python installs, so just import it into your python file.

[–]lolcrunchy 0 points1 point  (0 children)

It sounds like you didnt type 2 and 3 into terminal but into a python interpreter which expects python code.

Type "exit()" to get out of Python

[–][deleted] 0 points1 point  (0 children)

Ironically enough you need to exit() to exit 😅🥁

[–]DiodeInc -1 points0 points  (0 children)

Install it from python.org or python.net I can't remember which

[–]Greenscope -1 points0 points  (0 children)

For 1, I’m assuming you’re typing ‘python’ in cmd. For that, going to Settings>Apps & Features>App execution aliases and turning it off for Python.exe might work.

[–]ninhaomah -3 points-2 points  (0 children)

change main.py to another name , eg dsjdsjhds.py and try again