2

So I was using pythonV3 for the past few months. But then I somehow messed up my Python installation.

So I decided to start from scratch: I uninstalled all Python from my computer and reinstalled Python3.8.1. Or at least I thought I did.

When I try to check which version of Python I have by using the python --version or python3 --version commands, I get no message at all. No error message and no confirmation message.

3 Answers 3

4

I uninstalled Python one more time and then re-installed. But this time, I checked the box that "Added Python to PATH".

Now, the command "python --version" returns the expected Python 3.8.1.

The only reason I did not check the box the first time around was because I thought it was better/best practice to stick with whatever defaults the installation dialog box came with.

Sign up to request clarification or add additional context in comments.

1 Comment

This helped me. I did the same thing thinking that the default was the best way to go.
1
  1. Check the environment variables is the Python3.8.1 path added in system variable path? Are you able run python to enter into python interpreter?
C:\Users\itachi>python --version
Python 3.8.1

C:\Users\itachi>python
Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 22:39:24) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>   

Comments

0

I updated my pc to Windows 11 and encountered the same situation.

I looked for Python and installed it from Microsoft Store, which helps fix the problem.

So, try installing Python from Microsoft Store instead of the Python site

1 Comment

Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.