Page MenuHomePhabricator

Adding pip to my replica
Closed, InvalidPublic

Description

Hi,

Would it be possible to get pip installed in my replica (username:cristinasarasua) to be able to install Toolforge via

pip install Toolforge

?

Thanks in advance.
Cristina

Event Timeline

bd808 added a subscriber: bd808.

You must create a Python virtualenv and then use pip from inside that virtualenv. One way to do that:

$ ssh login.tools.wmflabs.org
$ python3 -m venv $HOME/py3-venv
$ source $HOME/py3-venv/bin/activate
$ pip install ...

The process is similar, but slightly different when creating a virtualenv for use by a Kubernetes webservice. See https://wikitech.wikimedia.org/wiki/Help:Toolforge/Web#Using_virtualenv_with_webservice_shell for those instructions.