[PyQt] pip vs apt-get install
Florian Bruhin
me at the-compiler.org
Tue May 3 16:23:33 BST 2016
Hey,
* scalet at yebu.de <scalet at yebu.de> [2016-05-03 15:25:39 +0200]:
> Ubuntu:
> Normally when installing new python modules, I go that road:
> When I find it in the apt repository (standard) and I do not
> have a very urgent reason to have a bleeding edge version)
> I will use this. If not, I do a pip3 install. If not even
> available for pip ... oke, that's another story.
>
> I feel this way, I get the most stable system.
I think the most important rule is: Never use pip (or any package
manager other than your system's) as root (e.g. with sudo).
There is a very real chance you'll mess up your system otherwise, as
various things depend on libraries being installed in exactly the
version they are, etc. I see people who broke their systems that way
in #python (the IRC channel) regularily.
I usually install PyQt system-wide (because it's just easier), then
create a virtualenv[1], symlink the systemwide installation there[2]
and then use pip inside the virtualenv.
[1] https://pypi.python.org/pypi/virtualenv
[2] https://github.com/The-Compiler/qutebrowser/blob/master/scripts/link_pyqt.py
An alternative to doing that is pip install --user which installs
packages to e.g. ~/.local/lib/python3.4/site-packages/.
Florian
--
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160503/10d10d65/attachment.sig>
More information about the PyQt
mailing list