Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings

爱⌒轻易说出口 提交于 2021-02-10 06:16:22

问题


I'm just starting coding and I was trying to download a GUI but the terminal keeps giving me this error Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

I'm trying to install it using this command python -m pip install --upgrade pip setuptools virtualenv


回答1:


You need to download python from https://python.org. When in the installation, be sure to check the option that adds Python to PATH.




回答2:


I haven't gotten this error before and have been using python a long time, and then suddenly it showed up. I think that it is a result of a windows update designed to steer you to their store. In any case: to remedy the problem, go to settings>app execution aliases>and turn "off" python. (What they tell you to do, in other words). This should resolve the problem.




回答3:


I have the some issue. I fixed this issue by using below method.

  1. copy two paths of Python

C:\Users\Maninder\AppData\Local\Programs\Python\Python39 C:\Users\Maninder\AppData\Local\Programs\Python\Python39\Scripts

These are the path where your python is installed. Now add this path into your environmental variable. Put this path into System variable not in user variable. I was using user variable so I was facing the issue.




回答4:


If you're on Windows, you may want to use the Python installer, in Windows Marketplace.




回答5:


I had the same issue. In windows CMD, only: py --version , works. I tried adding the path on System variables and didn't work. If you are using PyCharm as I do, try to run all commands from the IDE's terminal. It usually is on the side bar where the Run and the Console is. If it is not, go to: View->Tool Windows->Terminal. It worked just fine for me.



来源:https://stackoverflow.com/questions/65348890/python-was-not-found-run-without-arguments-to-install-from-the-microsoft-store

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!