Unable to run Python 3.7 on Windows 10 "Permission denied"

12,367

Python isn't actually installed. That's a shim which should open the Windows store, but it only works from PowerShell or CMD (and only does that correctly some of the time). I recommend visiting the Python website and downloading and installing from there.

Here is the blog post announcing this "feature": https://devblogs.microsoft.com/python/python-in-the-windows-10-may-2019-update/

This SuperUser article discussed solutions: https://superuser.com/questions/1437590/typing-python-on-windows-10-version-1903-command-prompt-opens-microsoft-stor

Share:
12,367

Related videos on Youtube

General Gravicius
Author by

General Gravicius

Updated on July 14, 2022

Comments

  • General Gravicius
    General Gravicius almost 2 years

    When trying to run Python 3.7 on Windows 10 with Git Bash I get the following error:

    $ python --version
    bash: /c/Users/Name/AppData/Local/Microsoft/WindowsApps/python: Permission denied
    

    What to do?

    Edit: I solved (or rather circumvented) this by installing python using scoop and using cmder instead of Git Bash.

    • Markus Meskanen
      Markus Meskanen about 4 years
      Why is this question closed? "We don’t allow questions about general computing hardware and software on Stack Overflow" this question is about a very specific issue on using Python on Windows, it's 100% relevant to StackOverflow.
    • Mote Zart
      Mote Zart almost 4 years
      Yep. It helped me.
  • General Gravicius
    General Gravicius over 4 years
    I've already installed though, and from the Python website. I can use it with PyCharm.
  • Eryk Sun
    Eryk Sun over 4 years
    You mean bash, not Linux. git-bash is based on MSYS2, which is derived from Cygwin.