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

Does not accomodate for a user having Python 2.7 installed #3

Closed
DuIslingr opened this issue May 15, 2019 · 1 comment
Closed

Does not accomodate for a user having Python 2.7 installed #3

DuIslingr opened this issue May 15, 2019 · 1 comment

Comments

@DuIslingr
Copy link

DuIslingr commented May 15, 2019

I was trying to use this via the vanilla amd guide and I kept getting not found in path even after 32 bit and 64 bit versions were installed. I even verified that they were added to path and rebooted. So I opened a separate terminal and ran python and it opened a 2.7 instance so i just uninstalled it and the script started working after that.

Specifically on Windows 10.

@corpnewt
Copy link
Owner

Fixed by routing stderr to stdout and verifying the returned string starts with "python":

:checkpy
REM Get python location
set "python="
FOR /F "tokens=* USEBACKQ" %%F IN (`python -V 2^>^&1`) DO (
    set "t=%%F"
    if /i "!t:~0,6!" == "python" (
        set "python=%%F"
    )
)

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

2 participants