lordmauve / pgzero

A zero-boilerplate games programming framework for Python 3, based on Pygame.
https://pygame-zero.readthedocs.io/
GNU Lesser General Public License v3.0
530 stars 190 forks source link

Error: pgzrun is not recognized as an internal or external command #271

Open lordmauve opened 2 years ago

lordmauve commented 2 years ago

Hi, I have added the path:

C:\Users\rmblu>echo %PATH% C:\Program Files\Python310\Scripts\;C:\Program Files\Python310\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Users\rmblu\AppData\Local\Microsoft\WindowsApps;

However; I still have this error and couldnt figure out why?

C:\Users\rmblu>'pgzrun' is not recognized as an internal or external command, ''pgzrun'' is not recognized as an internal or external command, operable program or batch file.

Can you please help

Originally posted by @vblume in https://github.com/lordmauve/pgzero/issues/60#issuecomment-1003677097

lordmauve commented 2 years ago

@vblume what are the contents of C:\Program Files\Python310\Scripts?

What does pip freeze print?

vblume commented 2 years ago

hi, The content of C:\Program Files\Python310\Scripts is: pip; pip3.10 and pip3 C:\Users\rmblu>pip freeze numpy==1.22.0 pgzero==1.2.1 pygame==2.1.2

lordmauve commented 2 years ago

What does pip --version print?

vblume commented 2 years ago

pip 21.3.1 from C:\Users\rmblu\AppData\Roaming\Python\Python310\site-packages\pip (python 3.10)

lordmauve commented 2 years ago

I suspect you will have a directory like C:\Users\rmblu\AppData\Roaming\Python\Python310\Scripts or C:\Users\rmblu\AppData\Roaming\Python\Scripts which would have to be on your %PATH% also.

If you find it, please will you let me know where it is?