Skip to content

Inconsistent python2 exe running #667

Closed
@refack

Description

My "weird" system has two executables named python2:

[12:59:24.60] c:\Users\refael>where python2
C:\Tools\res\scripts\python2.bat
C:\bin\msys64\usr\bin\python2.exe

[13:02:04.47] c:\Users\refael>C:\Tools\res\scripts\python2.bat -V
C:\bin\dev\python27\python.exe -V
Python 2.7.8

[13:02:06.15] c:\Users\refael>C:\bin\msys64\usr\bin\python2.exe -V
Python 2.7.9

When running node-gyp configure the wrong one is run:

...
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` succeeded python2 C:\Tools\res\scripts\python2.BAT
gyp verb check python version `python2 -c "import platform; print(platform.python_version());"` returned: "2.7.9\n"
...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions