Unable to install Python 3.13

I’m trying to deploy python 3.13 via intune everything seems to work, however when I try to run a command it gives be below error.

I don’t want to reinstall the app, as I’ve deploying python via a different tool and receive the same error

The CPython binary is distributed as ‘python.exe’, and on Windows, is often started with the ‘py.exe’ launcher. The uppercase ‘Python.exe’ is something else. You should probably report the problem to whoever makes it.

‘encodings’ is a builtin module normally present in python.exe’s Lib directory. Only you can check whether it is present there on your machine or in Python.exe’s equivalent.

Not necessarily. This is a command the OP has typed, and it wouldn’t matter on Windows if it were spelled with a capital P.

However, Windows is going to look along the PATH for that executable, and since it looks like it found some version of Python, Python is going to look relative to its own location for a Lib directory.

I suggest the problem is that, although python.exe is there, this is a broken installation (lacking the libraries). @NadiaRani : have a look at a clean Python installation done the conventional way on your local machine, and then whatever deploying with intune has produced.

What is your OS?

Did you get this solved?

It sounds like you are missing elements for your PATH variable so the OS can find both the python.exe and its libraries.

  1. My Python is installed in c:\program files\python3.14
  2. Here’s what I have in my Windows 11 PATH variable (in my cmd.exe window) pertaining to Python: ;"c:\program files\Python314";"c:\program files\Python314\Scripts";"c:\Users\YOURUSER\AppData\Roaming\Python\Python314\Scripts"

These locations are also set up in my system path under: Control Panel, System Properties, Advanced tab, click Environment Variables button.