Python on Windows — Running Python.exe From Command Prompt


If you’re wondering how to run python.exe by typing python (like in a linux box), set up an environment variable called python that targets python.exe.

The following post details how to set an environment variable.

Follow the instructions, except instead of appending to the Path variable, add a new one:

  • Variable: python
  • Value: C:\Python[version]\python.exe

Start up your command prompt and type ‘python’, or ‘python _whatever_’ and the commands should work as expected.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s