• =?UTF-8?Q?=22Getting_=27This_app_can=E2=80=99t_run_on_your_PC=27_=28Access_D?==?UTF-8?Q?enied=29_error_when_running_Python_or_checking_version_in_CMD_?==?UTF-8?Q?on_Windows_11=22?=

    From Praveen Kumar@thitanpraveenkumar143@gmail.com to comp.lang.python on Sat Mar 8 15:59:51 2025
    From Newsgroup: comp.lang.python

    Hi Python community and members,
    I hope this email finds you well, I want you to be assisted in resolving
    this following issue. kindly look at the below concern,
    """I’m running into an error where I get a 'This app can’t run on your PC' pop-up with (Access is Denied error) whenever I try to run the Python
    version (python --version) or run python.exe in the Command Prompt on
    Windows 11."""
    *Here’s what I’ve tried so far:*
    *Uninstalled python software from the apps settings and reinstalled python software from the official python.org site
    *Added Python to the PATH in the Environment Variables. (system variables,
    User variables.)
    ***C:\Users\Bharath\AppData\Local\Programs\Python\Python313\ ***C:\Users\Bharath\AppData\Local\Programs\Python\Python313\Scripts\
    * however, then after I tried running direct path execution in the cmd. "C:\Users\Bharath\AppData\Local\Programs\Python\Python313\python.exe" --version, however it works well and it executed and showed the version,
    but without file path, it won't work anyway.
    * Additionally I've checked windows apps interference whether it is causing this error, and I saw a couple of python.exe files in this folder contains
    0KB size then I thought these were corrupted and after I tried deleting
    these files, later I re-checked in cmd, however the issue persisted. refer
    to the following error for your further reference. *https://i.sstatic.net/6koOnZBM.png <https://i.sstatic.net/6koOnZBM.png>https://i.sstatic.net/65JC9FuB.png <https://i.sstatic.net/65JC9FuB.png>*
    * Ran the Command Prompt as an administrator.
    *Tried multiple other troubleshooting steps, but none of them worked.
    Despite these efforts, the issue persists. Could someone please help me
    resolve this?
    Extending my request you to kindly help me out of this error and give me
    the root cause of this problem.
    *Kind regards, *
    *Sincerely,*
    *Praveen Kumar*
    *Mob: *+91 9515531643
    --- Synchronet 3.20c-Linux NewsLink 1.2
  • From Gilmeh Serda@gilmeh.serda@nothing.here.invalid to comp.lang.python on Sun Mar 9 19:16:52 2025
    From Newsgroup: comp.lang.python

    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?
    --
    Gilmeh

    Even bytes get lonely for a little bit.
    --- Synchronet 3.20c-Linux NewsLink 1.2
  • From Gilmeh Serda@gilmeh.serda@nothing.here.invalid to comp.lang.python on Sun Mar 9 21:43:16 2025
    From Newsgroup: comp.lang.python

    On Sun, 9 Mar 2025 17:14:00 -0400, Thomas Passin wrote:

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

    No thank you, it works just fine for me. I don't use that shitty Redmond system.
    --
    Gilmeh

    "We are on the verge: Today our program proved Fermat's next-to-last
    theorem." -- Epigrams in Programming, ACM SIGPLAN Sept. 1982
    --- Synchronet 3.20c-Linux NewsLink 1.2