Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

easyinstall sets PYTHONPATH #24

Open
avdv opened this issue Jun 27, 2014 · 0 comments
Open

easyinstall sets PYTHONPATH #24

avdv opened this issue Jun 27, 2014 · 0 comments

Comments

@avdv
Copy link

avdv commented Jun 27, 2014

Code at https://github.com/adorepump/chocolatey-packages/blob/master/easy.install/tools/chocolateyInstall.ps1#L118 argues:

PYTHONHOME variable is not required to Python works, but it is a good practice to have it.

This is wrong. Actually it breaks running python2 if you have python3 installed or vice versa. Observe:

$ echo %PYTHONHOME%
C:\Python34
$ py -2
  File "C:\Python34\lib\site.py", line 176
    file=sys.stderr)
        ^
$ py -3
Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:25:23) [MSC v.1600 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

When calling python 2.x the PYTHONHOME points to python3 code which the python2 interpreter chokes upon.

So, setting PYTHONHOME is not a good idea. It is a user setting that should not be messed with. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant