Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Post History

50%
+0 −0
Q&A Why can't I run freshly-installed Python from the command line on Windows?

I tried installing Python on an old computer running Windows 8[1]. I know for a fact that there was never any previous installation of Python on the machine. The installation appeared to be success...

1 answer  ·  posted 5mo ago by Karl Knechtel‭  ·  last activity 5mo ago by Karl Knechtel‭

#1: Initial revision by user avatar Karl Knechtel‭ · 2024-06-18T13:34:57Z (5 months ago)
Why can't I run freshly-installed Python from the command line on Windows?
I tried installing Python on an old computer running Windows 8[^1]. I know for a fact that there was never any previous installation of Python on the machine. The installation appeared to be successful, but I can't run Python from the command line - I get the standard error `'python' is not recognized as an internal or external command, operable program or batch file.`.

On Windows 10, I get a stranger result: `python` by itself opens the Windows Store, while more complex commands report:

```none
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
```

or

```none
Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640
```

What's going on? I already installed Python from the official python.org distribution. I don't want to install it again from the Microsoft Store. I just want to run `python`. The `go.microsoft.com` link doesn't seem to be valid any more, either.

[^1]: This is a contrivance to simplify the question. At the time of writing, [current versions of Python (up to and including 3.12) are supported on Windows 8.1 and newer, but Windows 7 would only support up to Python 3.8](https://docs.python.org/3/using/windows.html) which is about to become unsupported.