I think I found the solution actually. I found it on https://wikitech.wikimedia.org/wiki/ORES/Deployment#Update_wheels and am pasting it below as well:
virtualenv -p python3 venv source venv/bin/activate pip install --upgrade pip pip install whatever
On Sat, Aug 11, 2018 at 10:20 AM Huji Lee huji.huji@gmail.com wrote:
Actually, I should have tested it before sending that email. When I run python3 -m venv $HOME/www/python/venv I get the following error. What am I missing here?
The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command.
apt-get install python3-venv
You may need to use sudo with that command. After installing the python3-venv package, recreate your virtual environment.
On Sat, Aug 11, 2018 at 8:57 AM Huji Lee huji.huji@gmail.com wrote:
Perfect, thanks!
On Sat, Aug 11, 2018 at 6:01 AM Michael Schönitzer < michael.schoenitzer@wikimedia.de> wrote:
It's available – and you should use venv. Something like:
$ python3 -m venv $HOME/www/python/venv$ source $HOME/www/python/venv/bin/activate$ pip install --upgrade pip*$* pip install whatever
Cheers, M
2018-08-11 2:51 GMT+02:00 Huji Lee huji.huji@gmail.com:
Hi all,
What is the best way to install pip on the Clouds servers? I have a pywikibot program that depends on a pip-based package, and would like to be able to install that dependency using *pip install*.
Thanks,
Huji
Wikimedia Cloud Services mailing list Cloud@lists.wikimedia.org (formerly labs-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/cloud
-- Michael F. Schönitzer
Wikimedia Deutschland e.V. | Tempelhofer Ufer 23-24 | 10963 Berlin Tel. (030) 219 158 26-0 http://wikimedia.de
Stellen Sie sich eine Welt vor, in der jeder Mensch an der Menge allen Wissens frei teilhaben kann. Helfen Sie uns dabei! http://spenden.wikimedia.de/
Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e.V. Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter der Nummer 23855 B. Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin, Steuernummer 27/681/51985. _______________________________________________ Wikimedia Cloud Services mailing list Cloud@lists.wikimedia.org (formerly labs-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/cloud