<div dir="ltr">Thanks. Very useful advice.</div><div class="gmail_extra"><br><div class="gmail_quote">On 4 May 2016 at 03:23, Florian Bruhin <span dir="ltr"><<a href="mailto:me@the-compiler.org" target="_blank">me@the-compiler.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey,<br>
<br>
* <a href="mailto:scalet@yebu.de">scalet@yebu.de</a> <<a href="mailto:scalet@yebu.de">scalet@yebu.de</a>> [2016-05-03 15:25:39 +0200]:<br>
<span class="">> Ubuntu:<br>
> Normally when installing new python modules, I go that road:<br>
> When I find it in the apt repository (standard) and I do not<br>
> have a very urgent reason to have a bleeding edge version)<br>
> I will use this. If not, I do a pip3 install. If not even<br>
> available for pip ... oke, that's another story.<br>
><br>
> I feel this way, I get the most stable system.<br>
<br>
</span>I think the most important rule is: Never use pip (or any package<br>
manager other than your system's) as root (e.g. with sudo).<br>
<br>
There is a very real chance you'll mess up your system otherwise, as<br>
various things depend on libraries being installed in exactly the<br>
version they are, etc. I see people who broke their systems that way<br>
in #python (the IRC channel) regularily.<br>
<br>
I usually install PyQt system-wide (because it's just easier), then<br>
create a virtualenv[1], symlink the systemwide installation there[2]<br>
and then use pip inside the virtualenv.<br>
<br>
[1] <a href="https://pypi.python.org/pypi/virtualenv" rel="noreferrer" target="_blank">https://pypi.python.org/pypi/virtualenv</a><br>
[2] <a href="https://github.com/The-Compiler/qutebrowser/blob/master/scripts/link_pyqt.py" rel="noreferrer" target="_blank">https://github.com/The-Compiler/qutebrowser/blob/master/scripts/link_pyqt.py</a><br>
<br>
An alternative to doing that is pip install --user which installs<br>
packages to e.g. ~/.local/lib/python3.4/site-packages/.<br>
<span class="HOEnZb"><font color="#888888"><br>
Florian<br>
<br>
--<br>
<a href="http://www.the-compiler.org" rel="noreferrer" target="_blank">http://www.the-compiler.org</a> | <a href="mailto:me@the-compiler.org">me@the-compiler.org</a> (Mail/XMPP)<br>
   GPG: 916E B0C8 FD55 A072 | <a href="http://the-compiler.org/pubkey.asc" rel="noreferrer" target="_blank">http://the-compiler.org/pubkey.asc</a><br>
         I love long mails! | <a href="http://email.is-not-s.ms/" rel="noreferrer" target="_blank">http://email.is-not-s.ms/</a><br>
</font></span><br>_______________________________________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" target="_blank">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br></div>