r/learnpython • • Oct 23 '26

Python doesn't work in vc

I just want to

print("hello, world")

and it doesn't work

0 Upvotes

25 comments sorted by

View all comments

3

u/eruciform Oct 23 '26

where did you type it, how did you run it, and what message did you get, there's nowhere near enough information to debug this as is

-1

u/anas_mv Oct 23 '26

In the terminalIn the terminal, i write python hello , i got C:\Users\tec\AppData\Local\Python\pythoncore-3.15-64\python.exe: can't open file 'C:\Users\hello.py': [Errno 2] No such file or directory

1

u/JGhostThing Oct 23 '26

You need to be in the directory where the file hello.py is. Then "python hello" should work.