Can't get pygame to run


I am trying to run pygame, and think I have installed it correctly.

However when I run this: pgzrun C:\Users\catew\python\

A window flashes up for a split second, but does nothing

C:\Users\catew\AppData\Roaming\Python\Python310\site-packages>pgzrun C:\Users\catew\python\
pygame 2.1.2 (SDL 2.0.18, Python 3.10.9)
Hello from the pygame community.


I suspect the cause is to do with when I run it from another directory it does not work at all:

C:\Users\catew\AppData\Roaming\Python\Python310\site-packages>cd ..

C:\Users\catew\AppData\Roaming\Python\Python310>pgzrun C:\Users\catew\python\
'pgzrun' is not recognized as an internal or external command,
operable program or batch file.

I think I’ve updated PATH correctly, but something is not right!

Did you install pygame zero as the documentation shows?

py -m pip install pgzero