Skip to content

Installation failed #8

Description

@cwittern

I tried to follow the installation instructions on my Ubuntu 20.04 system, which has python installed via pyenv.
The relevant part of the error log is as follows

npm ERR! gyp verb check python checking for Python executable "python2" in the PATH
npm ERR! gyp verb `which` succeeded python2 /home/chris/.pyenv/shims/python2
npm ERR! gyp ERR! configure error 
npm ERR! gyp ERR! stack Error: Command failed: /home/chris/.pyenv/shims/python2 -c import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack pyenv: python2: command not found
npm ERR! gyp ERR! stack 
npm ERR! gyp ERR! stack The `python2' command exists in these Python versions:
npm ERR! gyp ERR! stack   2.7.17
...

Of course a dependency on python2 does not sound nice to begin with, but since I am using it still a lot, I have no qualms about that. What should I do to tell npm where to find my python?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions