Had similar issue, and I have checked to make sure the installation path for python is added under environment variables.
C:\Users\username\AppData\Local\Programs\Python\Python313\Scripts
C:\Users\username\AppData\Local\Programs\Python\Python313\Lib
C:\Users\username\AppData\Local\Programs\Python\Python313
enter image description here