I ran into this problem recently. With Visual Studio 2019 installed, I had already installed Python as a workload. I went to CMD and typed python. Up came the Microsoft Store. After wasting too much time looking more into this, it was obvious to me Microsoft Visual Studio team and Python team were not on the same page.
What I eventually ended up with was going back into Visual Studio installer and unchecking the Python workload to uninstall. Then, going into Windows Apps and uninstalling Python and any Python related applications listed.
After noticing that Python was installed on my 1TB NVMe SSD boot drive in the users directory I cringed. The path name was not friendly at all. Not only that, but because I have limited space on that drive and with all the Microsoft Store apps piling up, I dread to think what happens when the drive goes full.
So I decided, this was not good and chose to go to the Python website and download the current version. Then, install in a non-boot drive with plenty of disk space into a friendlier file path (D:\Python). You'll see why this is important when you go pip down a bunch of packages and applications...
Also, if you run into environment space problems, at the end of the Python installer is a question if you want to increase environment space. Say yes. Looking at my environment PATH, D:\Python\Python38\Scripts and D:\Python\Python38 were pre-appended.
May be that was some sort of advertising, py3.7 is in Windows Store. But I'm using it, not an issue. – Biswapriyo – 2019-05-16T12:32:18.203
Are you using python 2.7? if your system doesn't have python 3.x but 2.x, try typing python in cmd prompt, see what happens? – Ac3_DeXt3R – 2019-05-16T12:42:12.760
3What does this command reveal?
where python
– Biswapriyo – 2019-05-16T13:41:43.4071Two options: - C:\Python27\python.exe ;
C:\Users\Username\AppData\Local\Microsoft\WindowsApps\python.exe – Ac3_DeXt3R – 2019-05-17T05:16:50.810
You got your answer. The second option does not exist in normal python installation. – Biswapriyo – 2019-05-17T06:13:35.610
but how it is coming like this? In windows 10 RS5, I never saw this behaviour. – Ac3_DeXt3R – 2019-05-17T11:34:55.820
3This was intended behavior. Microsoft added this behavior with 1903 because they recognized developers struggle getting Python installed. I read about this change but I don’t recall where I read it. – Ramhound – 2019-05-30T10:53:34.343
Of note: if you don't have a Microsoft account, triggering the Microsoft Store just launches Edge and gives you an incomprehensible error message. – Adrian McCarthy – 2020-01-09T23:57:20.083
Yes the problem was triggered by the 2 App installer aliases. One way that never fails is using full paths: https://stackoverflow.com/questions/59885771/python3-7-venv-does-not-create-virtual-environment-directory.
– CristiFati – 2020-01-24T13:19:39.267