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).

Ketan
  • 1,489
  • 1
  • 14
  • 21

1 Answers1

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.
Andrew E
  • 5,843
  • 2
  • 30
  • 34
  • I wanted to know if there was a special command for permanent setting, from cmd – Ketan Jan 01 '15 at 06:25
  • That wasn't clear. In that case your question is a duplicate of this: http://stackoverflow.com/a/8358361/963195 – Andrew E Jan 01 '15 at 06:32
  • @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. – Harry Johnston Jan 01 '15 at 07:14
  • @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"`. – Eryk Sun Jan 02 '15 at 02:06