3

My Windows 10 computer just installed updates and now when I go to the command prompt and type "python" the Windows store opens with a download option.

My path already includes two versions of Python for some reason:

C:\Users\Josh\AppData\roaming\Python\Python37\ C:\Users\Josh\AppData\Local\Programs\Python\Python37 

Any suggestions? I can type in a python script (think.py) and it runs as expected, but python think.py does nothing.

4
  • try py maybe? Commented Sep 14, 2019 at 22:38
  • That works, but why the change? Commented Sep 14, 2019 at 22:43
  • did you have python 2 installed before? Commented Sep 14, 2019 at 22:47
  • I think it was installed on this computer by default. I do have Python 3.6 on here but I've excised it from the windows path. Commented Sep 14, 2019 at 22:53

1 Answer 1

2

python should work in cmd if Python is correctly installed and added to Windows path. py also exists and allows for a specification of a version i.e. py -2 or py -3. In your case it appears that python is installed in appdata and not program files, and this is most likely the issue with the python command not working! Here is a pretty comprehensive article on the differences between the two!

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

2 Comments

Very strange. This is my personal laptop. I don't know why Python installed under appdata twice. Should I reinstall while running the installer as an admin to get Python under Program Files?
Yeah I would rerun the installer and not let it use the default directory. Don't forget to tick the box that adds python to the system path!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.