After purchasing Learn MORE Python the Hard Way, I’m working through the initial setup stages of Zed’s Python 3 book. I’m trying to run Python in both the CMD prompt and Powershell, but both instances kick me to the Microsoft Store (I’m on Windows 10 OS).
I suspect it has to do with the tangled mess that is my PATH variable, and I’m grimacing at the idea of trying to fix it.
Will it be okay to simply use the Python interpreter?
That’s weird. Lots of weird in this screenshot:
- Why do you have 32bit and 64 bit pythons?
- Why are they different versions?
- Why is this running in a separate window, instead of being commands you typed in powershell? Like I should see this:
PS C:\Users\Tasha_PC> python
- What do you mean by “Would it be ok to simply use the Python interpreter?”
Alright so I’m guessing then that you installed Python in some way that isn’t working. Maybe you used Anaconda? Either way, you need to hunt down where this python lives so you can figure out what to uninstall. If you find the executable (.exe) then you should be able to right click and look at properties or Open containing folder. Once you do that you should see where the python.exe is living and then that’ll tell you what application it is. If it’s something like Anaconda and you don’t need it, then uninstall them all and install the official Python distribution.
Be sure to click “Add to PATH” when you install python this new way or it won’t be in your powershell.