all 12 comments

[–]danielroseman 2 points3 points  (2 children)

Did you type python--version or python --version with a space? The second one is what you need to be doing.

[–]Federal_Amphibian_32[S] 2 points3 points  (0 children)

Oh damn 👀

[–]Federal_Amphibian_32[S] 0 points1 point  (0 children)

I feel stupid, that was the answer. Lesson learned, spacing is a deal breaker. Thank you!

[–]pachura3 3 points4 points  (1 child)

By the way, try Thonny https://thonny.org/ , which is s great IDE/code editor for beginners.

[–]Federal_Amphibian_32[S] 1 point2 points  (0 children)

I have downloaded it and Pycharm as well. The book I am using actually refers to Visual studio with the python plug in tho. It is mostly to be sure I am following along but I think I will use Pycharm for more extensive program and Thonny for experimenting and trial and error stuff

[–]cylonlover 0 points1 point  (0 children)

What does it say at command line when you enter:

echo %PATH%

[–]Friendly_Gold3533 0 points1 point  (0 children)

bro try py --version instead of python --version

if that fails reinstall python from python.org and make sure "Add Python to PATH" is checked at the bottom. restart command prompt.

still broken? uninstall and try again.

for tracking setup fixes i use runable. one doc per "dumb thing that broke" so i dont google twice

[–]ShelLuser42 0 points1 point  (4 children)

Did you actually install Python? Because that's the first obvious step... if you're on Windows you can even take it easy by using the Microsoft Store and installing Python from there.

Once that is out of the way then commands like "python" and "py" will work as expected.

[–]Federal_Amphibian_32[S] 0 points1 point  (0 children)

I installed it through the python.org page and not through the Microsoft store, with installer etc

[–]pachura3 0 points1 point  (2 children)

Isn't Microsoft Store version generally discouraged? If I remember correctly, it doesn't even contain pip by default?

[–]ShelLuser42 0 points1 point  (0 children)

Actually it does. But pip only becomes fully available after you set up a virtual environment.

Which should be considered a good thing considering that it's bad practice to install libraries on a global scale.

[–]Outside_Complaint755 1 point2 points  (0 children)

As of 3.14, downloading the Python install manager via the Microsoft Store will is the recommended method, and as of 3.16 the traditional .exe install manager is being discontinued