Re: "Getting 'This app can’t run on your PC ' (Access Denied) error when running Python or checking ver sion in CMD on Windows 11"

Thomas Passin <[email protected]>
Newsgroups comp.lang.python
Message-ID <[email protected]>
On 3/9/2025 3:16 PM, Gilmeh Serda via Python-list wrote:
> On Sat, 8 Mar 2025 15:59:51 +0530, Praveen Kumar wrote:
> 
>> "C:\Users\Bharath\AppData\Local\Programs\Python\Python313\python.exe"
> 
> Is that an approved location for executables?

Yes, that's where a python.org install normally goes. If you are 
changing the system paths, that location is the one to use. But if 
that's the location that the system links Python.File to, it should 
launch without a problem. Maybe you should remove the path steps you 
added previously and see if that clears up the problem.

First, though, try to run python using the absolute path you have just 
found.

BTW, it's always a good idea to run pip using the python install that 
you will be running.  So if "python" runs the right version, then invoke 
pip this way:

python -m pip

If you use the launcher, then:

py -m pip

This will make sure you use the version of pip that goes with your 
version of python, just in case there are other versions somewhere on 
the computer.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.