Uninstall and Re-install Python - Windows 10 issues

Mats Wichmann mats at wichmann.us
Wed Jun 23 14:45:33 EDT 2021


On 6/23/21 6:47 AM, Suretha Weweje wrote:
> After I uninstalled Python 3.7and Python 3.9 and installed Python 3.9.5 and
> is displayed in Apps & features:
> 
> Python 3.9.5 Python 3.9.5 (64-bit), size 101 MB, and
> Python Launcher, size 1.80 MB
> 
> Upon checking the python version, I get the following error message:
> C:\>python --version
> Python was not found; run without arguments to install from the Microsoft
> Store, or disable this shortcut from Settings > Manage App Execution
> Aliases.
> 
> In the Start Menu, Python 3.9 shortcut is present, and when I click on that
> it takes me to Python 3.9(64-bit) CMD.  Just to test, I add a print
> statement.
> 
> Python 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64
> bit (AMD64)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
>>>> print("This is Tuesday")
> This is Tuesday
>>>>

In other words, your Python installation is working fine. So what's the 
problem?


> Can someone kindly assist or direct me to where I can find a solution

python itself isn't normally in the path.  this is in common with every 
app you install on Windows, where they all go to their own place. some 
installers force-add their path to the environment, Python gives you a 
choice, which you can go back to the installer to activate. More 
commonly, if you use the python.org installer, you also install the 
Python Launcher which helps with a variety of problems, in particular 
with making sense  of when you have multiple Python versions installed. 
If you installed that, launch Python by typing "py" (rather than "python").

See here for some more reading:

https://docs.python.org/3/using/windows.html



More information about the Python-list mailing list