[PyQt] pip vs apt-get install

Chris O'Halloran cmoman at gmail.com
Wed May 11 04:50:21 BST 2016


Thanks. Very useful advice.

On 4 May 2016 at 03:23, Florian Bruhin <me at the-compiler.org> wrote:

> 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/
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160511/e9b6c901/attachment.html>


More information about the PyQt mailing list