Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 247
General Gravicius Avatar asked Dec 03 '19 00:12

General Gravicius


1 Answers

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

like image 125
Sumner Evans Avatar answered Sep 28 '22 11:09

Sumner Evans