From where does PyCharm discover the python.exe location?

I ask because I had installed Python interpreter using options I'd hoped would have no effect outside the install directory.

But then upon running PyCharm 2019.3.5 Create New Project I was surprised to see it discover the python.exe location:

 

 

0
7 comments
Hello, 
PyCharm takes Python executables from the PATH system variable. You can check its values by doing the following:
1. Click the Windows button and type "environment variables" to display a list of options.
2. Click the Edit the system environment variables option. The System Properties dialog is displayed.
3. Click the Environment Variables button. The Environment Variables dialog is displayed.
0

Thanks but this python.exe path os not present anywhere in the PATH variable. 

This is as expected from the installer options:

 

0

That's unusual. Could you please run echo $PATH$ in CMD and share the output? 

0

echo %PATH% ?

Privacy concern prevents me posting it here, but do you you have an email address I can send it to?

 

Thanks.

0
Please copy the output into the text file, upload it here: https://uploads.services.jetbrains.com/, and tell us the upload ID. It's a private upload, only JetBrains agents can access it.
0

Thanks. 

Upload id: 2024_06_04_Lw8iHLcK1BJppWVmYwMWpE (file: path.txt)

0

chrisjj , thank you for the output! python is indeed not present in PATH variable.

I am wondering if you can execute the following from CMD or PowerShell, would python be discovered on the system?

python -V
0

Please sign in to leave a comment.