0

Beginner here. Installed Python 3.9 and PyCharm. Trying to execute from command prompt in Windows 10 Pro. I checked the environmental variables with the route to the folder where the executables are but still does not work.

enter image description here

bad_coder
  • 11,289
  • 20
  • 44
  • 72
Kike
  • 1
  • 3
  • Welcome to Stack Overflow. There are several ways to solve this. See the rules for setting [`sys.path`](https://docs.python.org/3/library/sys.html#sys.path). Your question doesn't specify which solution you want. – bad_coder Sep 14 '21 at 15:02
  • Also see [this answer](https://stackoverflow.com/a/21203166) or one of these [PYTHONPATH and PyCharm](https://stackoverflow.com/search?q=%5Bpycharm%5D+PYTHONPATH) – bad_coder Sep 14 '21 at 15:20

1 Answers1

-1

Use :

Python3 Helloword.py

Or:

Python Helloword.py

You have to tell to OS this is a python file. You just wrote file name but didn't tell what's execute this.

data_m
  • 124
  • 1
  • 9