Allow pip and pip3 to be used when starting workspaces

dan.stern
dan.stern Member, Moderator, Domino Posts: 37 mod

When Domino starts a workspace or job in a project with a requirements.txt file included, it will not succeed if only pip3 is installed in the compute environment. As python 2.7 is now EOL, pip3 will likely start to become the more common choice and we should checked for both pip and/or pip3.

1 votes

Active · Last Updated

Comments

  • jeff.keller
    jeff.keller Member Posts: 7

    My understanding is that many of the rolling release Linux distributions (e.g., Arch) have taken to symlinking the python3 and pip3 binaries to python and pip:

    ln -s /usr/bin/python3 /usr/bin/python
    ln -s /usr/bin/pip3 /usr/bin/pip
    

    This is what Domino does in the environment they provide and what I've taken to doing in my environments (even if I don't particularly like it). This solves the requirements.txt issue, but will cause other issues if the environment has dependencies expecting these binaries to be version 2.x. But hopefully they become less frequent as dependencies move away from Python 2.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!