Hmm, there are two sub-sections related to pip within
https://wikitech.wikimedia.org/wiki/Help:Toolforge/Web#python_(Python3_+_Kubernetes)
but nothing within
https://wikitech.wikimedia.org/wiki/Help:Toolforge/Developing#Pywikibot
Perhaps you could add some details of what you got to work, in the
appropriate place? (I assume the latter?) Thanks! :)


On Sat, Aug 11, 2018 at 7:28 AM Huji Lee <[email protected]> wrote:

> 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 <[email protected]> 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 <[email protected]> wrote:
>>
>>> Perfect, thanks!
>>>
>>> On Sat, Aug 11, 2018 at 6:01 AM Michael Schönitzer <
>>> [email protected]> 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 <[email protected]>:
>>>>
>>>>> 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
>>>>> [email protected] (formerly [email protected])
>>>>> 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
>>>> [email protected] (formerly [email protected])
>>>> https://lists.wikimedia.org/mailman/listinfo/cloud
>>>
>>> _______________________________________________
> Wikimedia Cloud Services mailing list
> [email protected] (formerly [email protected])
> https://lists.wikimedia.org/mailman/listinfo/cloud



-- 
Nick Wilson (Quiddity)
Wikimedia Foundation
_______________________________________________
Wikimedia Cloud Services mailing list
[email protected] (formerly [email protected])
https://lists.wikimedia.org/mailman/listinfo/cloud

Reply via email to