<div dir="ltr"><div style class="markdown-here-wrapper" id="markdown-here-wrapper-934744"><p style="margin:1.2em 0px!important">2014-05-07 22:48 GMT+02:00 M.-A. Lemburg <<a href="mailto:mal@egenix.com" target="_blank">mal@egenix.com</a>>:</p>
<p style="margin:1.2em 0px!important"></p><div class="markdown-here-exclude"><p></p><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Please note that you should probably post this to the pip mailing<br>
list and/or the distutils list.<br>
<br>
python-ideas is about ideas for Python itself and even though Python 3.4<br>
includes bootstrap code to install pip, pip itself is not developed by<br>
the Python Core Devs.<br></blockquote><p></p></div><p style="margin:1.2em 0px!important"></p>
<p style="margin:1.2em 0px!important">There’s one point that’s relevant and worth discussing here, I quote:</p>
<p style="margin:1.2em 0px!important"></p><div class="markdown-here-exclude"><p></p><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><strong>pip’s choice of defaulting to a global installation is wrong</strong><br>
</blockquote><p></p></div><p style="margin:1.2em 0px!important"></p>
<p style="margin:1.2em 0px!important">Yes. Python’s pip bootstrapping is there in order to guarantee that all the “ just type <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">pip install foobar</code>” tutorials work.</p>
<p style="margin:1.2em 0px!important">Linux distributions like Arch, Debian and Ubuntu <a href="https://lists.debian.org/debian-python/2014/03/msg00045.html">deliberately</a> broke this guarantee, and for good reasons:</p>
<p style="margin:1.2em 0px!important">Pip per default installs globally, which should be the system package manager’s territory.</p>
<p style="margin:1.2em 0px!important">It would be best if pip would work like this if you run it without some <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">-g, --global</code> switch outside a venv:</p>
<p style="margin:1.2em 0px!important">On Linux: “You’re on linux, please use your package manager for global installation or use a virtual environment. Use the -g switch to force global installation”</p>
<p style="margin:1.2em 0px!important">On Windows and OSX: “Please use the -g switch for installations outside of virtual environments”</p>
<hr>
<p style="margin:1.2em 0px!important">Is it to late to change this? I really <em>want</em> the guarantee and pip to work. But I also totally understand why all those distributions break it!</p>
</div></div>