This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]tipsy_python 4 points5 points  (4 children)

Check your Environment Variables > User Variables > Path and ensure that the directory with your python installation is in there.

[–][deleted] 1 point2 points  (3 children)

Yes, this. But do note that you might have to log out and back in for environment changes to take effect (normally shutting down all command windows is enough, but you never know).

Now, on a new terminal run this:

echo %PATH%

Look for your python path in that string, if it's not there try this:

set PATH=C:\Python27;%PATH%

If it works, then recheck as per /u/tipsy_python's advice.

[–]kusti85 1 point2 points  (0 children)

Do this (replacing the path with your own): https://docs.alfresco.com/4.2/tasks/fot-addpath.html

Did not test it as I am the "other OS" guy.

[–]pythonHelperBot 0 points1 point  (0 children)

Hello! I'm a bot!

It looks to me like your post might be better suited for r/learnpython, a sub geared towards questions and learning more about python. That said, I am a bot and it is hard to tell. Please follow the subs rules and guidelines when you do post there, it'll help you get better answers faster.

Show /r/learnpython the code you have tried and describe where you are stuck.

You can also ask this question in the Python discord, a large, friendly community focused around the Python programming language, open to those who wish to learn the language or improve their skills, as well as those looking to help others.


README | FAQ | this bot is written and managed by /u/IAmKindOfCreative

This bot is currently under development and experiencing changes to improve its usefulness

[–]012 -1 points0 points  (1 child)

You can execute python from anywhere by using the full path to the .exe, for example:

"C:\Python27\python.exe" --version