Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why wouldn't I want to add Python.exe to my System Path at install time?

I'm reinstalling Python, on Windows 7, and one of the first dialog boxes is the Customize Python screen.

The default setting for "Add Python.exe to Path" is "Entire feature will be unavailable."

I always change this to "Will be installed on local hard drive."

It's not an issue, changing the system environment variables is a snap, but is there any upside to leaving this un-ticked?

like image 319
Seamus Nanatchk Avatar asked Jul 16 '14 16:07

Seamus Nanatchk


2 Answers

If you only have one version of Python installed, it won't matter.

If you have multiple versions installed, then the first one that appears in your system Path will be executed when you use the "python" command. Additionally, it can make older versions inaccessible without extra work. For example, I had a system with Python 2.7 installed and I added 3.2 on top of that and checked the option to to add Python.exe to the path during installation. After doing that, entering both "python" and "python3" on the command line opened up Python 3.2, so I would need to enter the full path to the 2.7 interpreter when I needed to execute 2.x scripts.

like image 171
skrrgwasme Avatar answered Oct 30 '22 04:10

skrrgwasme


One upside I can think of is if you run multiple python versions in windows. So, you have c:\python34 and c:\python27 but both are in the path, you'll get whichever comes first, leading you to a possibly unexpected result.

like image 34
jgritty Avatar answered Oct 30 '22 05:10

jgritty