how can i solve this?
iam trying run this command in vs code terminal but its keep giving this eror
PS C:UsersHesamDesktopcloud> python src/stats.py --chat_json C:UsersHesamDesktopchat exresult.json --output_dir C:UsersHesamDesktopres.png
python : The term 'python' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name
i am just want to run this project
2
Answers
at the very first in the place you typed "python" type py. I mean type py instead of python. I hope it will work
py src/stats.py –chat_json C:UsersHesamDesktopchat exresult.json –output_dir C:UsersHesamDesktopres.png
If you’re still having problems, try this:
Edit the system environment variables
in the Windows search barEnvironment variables
in the bottom right cornerUser variables for {YOUR_USERNAME}
and double-click onPath
New
and enter in the path to Python on your computer (it should look something like this:C:Users{USERNAME}AppDataLocalProgramsPythonPython{VERSION}
) (If you’ve already done this, there should be a entry with the directory to Python already)OK
on all opened windows andApply
if allowedIf you need help finding your python directory, here is an article: https://datatofish.com/locate-python-windows/
Hope this helps!