0

I have Python 3.4 installed on my C:\Python34 and I want to add this directory to my Path.

set path=%path%;C:\python34

on command prompt (win7) does this but not permanently (only for that session).

1 Answer 1

1

Not a Python question, just a plain Windows question. Google for "windows modify path".

These steps are from this page:

  1. From the desktop, right-click My Computer and click Properties.
  2. In the System Properties window, click on the Advanced tab.
  3. In the Advanced section, click the Environment Variables button.
Sign up to request clarification or add additional context in comments.

4 Comments

I wanted to know if there was a special command for permanent setting, from cmd
That wasn't clear. In that case your question is a duplicate of this: stackoverflow.com/a/8358361/963195
@ketan: why from the command line? There's no obvious reason why you would need to do it that way in the scenario you describe.
@ketan, or use the reg command. System environment variables get loaded by the session manager from the following registry key: "HKLM\System\CurrentControlSet\Control\Session Manager\Environment".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.