kitao / pyxel

A retro game engine for Python
MIT License
15.31k stars 847 forks source link

Pyxel 'not recognized as the name of a cmdlet, function, script file [etc.]' error when trying to run any pyxel command in VSCode #572

Open kaireinhold opened 1 month ago

kaireinhold commented 1 month ago

I'm new to using Pyxel, and have been trying to get it to work for the past hour or so. I've done the pip install for Pyxel, and have a file with the pyxel module imported and such. I'm trying to follow Testing Coder's tutorial series on YouTube, but not much is explained issue-wise.

Edit: Here's a screenshot of my terminal in VSCode Screenshot 2024-10-16 103523 I don't know why the 'pyxel run pyxel-main' command sent so many times either. I only sent it once. The terminal must have glitched.

kaireinhold commented 1 month ago

After some searching, working out issues using the help of AI, and finding a workaround (the command 'python -m pyxel [pyxel command]') I have been able to get it to work to a point. If anyone knows how to get it to work without the workaround, please let me know - everything I've tried to eliminate the need for the 'python -m' part of the commands has not worked.

merwok commented 1 month ago

This is a generic setup issue, not specific to Pyxel. I believe you need to do this step: https://realpython.com/python-coding-setup-windows/#changing-the-path-environment-variable (link to a specific section but the whole page is useful to read! See also: https://docs.python.org/3/using/windows.html

EurynomeKeros commented 3 weeks ago