<p dir="ltr"><br>
On Nov 23, 2015 10:46 AM, "Chris Barker" <<a href="mailto:chris.barker@noaa.gov">chris.barker@noaa.gov</a>> wrote:<br>
><br>
> On Sun, Nov 22, 2015 at 2:58 PM, Wolfgang Maier <<a href="mailto:wolfgang.maier@biologie.uni-freiburg.de">wolfgang.maier@biologie.uni-freiburg.de</a>> wrote:<br>
> <br>
>>><br>
>>> Useful content starts only 2/3 down the first page. The large "pip<br>
>>> install six" snippet probably doesn't deserve being that proeminent<br>
>>> (or being there at all), and is ironically redundant with the "how do<br>
>>> I install this?" link just below.<br>
>>><br>
>><br>
>> My favorite is "pip install pip". Seriously, is this installation one-liner going to be configurable by package authors eventually or will it just always say pip install no-matter-what?<br>
><br>
><br>
> This is a good point -- is there a need for generic install instruction on every package page?<br>
><br>
> If so -- it should be small :-)<br>
><br>
> Also -- maybe not the thread to bring this up in -- but maybe it should be::<br>
><br>
> python -m pip install package_name<br>
></p>
<p dir="ltr">I find this form preferable, especially for [shell] scripting, because:</p>
<p dir="ltr">* $PATH: ./bin/python[3.5] and ./bin/pip may not be in the same path (e.g. system, virtualenv, condaenv, --prefix)</p>
<p dir="ltr"> type python<br>
type pip<br>
which python<br>
which pip<br>
python -m site<br>
python -m site --user-base<br>
python -m site --user-site</p>
<p dir="ltr">* declare -rx PYTHONBIN="${VIRTUAL_ENV}/bin/python"</p>
<p dir="ltr"> "${PYTHONBIN}" -m pip install -U pip<br>
"${PYTHONBIN}" -m site</p>
<p dir="ltr"><a href="https://docs.python.org/2/library/site.html">https://docs.python.org/2/library/site.html</a><br></p>
<p dir="ltr">> -CHB<br>
><br>
><br>
> -- <br>
><br>
> Christopher Barker, Ph.D.<br>
> Oceanographer<br>
><br>
> Emergency Response Division<br>
> NOAA/NOS/OR&R (206) 526-6959 voice<br>
> 7600 Sand Point Way NE (206) 526-6329 fax<br>
> Seattle, WA 98115 (206) 526-6317 main reception<br>
><br>
> <a href="mailto:Chris.Barker@noaa.gov">Chris.Barker@noaa.gov</a><br>
><br>
> _______________________________________________<br>
> Distutils-SIG maillist - <a href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/distutils-sig">https://mail.python.org/mailman/listinfo/distutils-sig</a><br>
><br>
</p>