Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #12527

Re: best practice when installing python packages

From Anil F Duggirala <anilduggirala@fastmail.fm>
Newsgroups linux.debian.maint.python
Subject Re: best practice when installing python packages
Date 2020-04-26 15:40 +0200
Message-ID <zZPFL-1nQ-1@gated-at.bofh.it> (permalink)
References <zZwMN-6H3-5@gated-at.bofh.it> <zZxfQ-6QJ-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, 2020-04-25 at 13:55 -0400, Scott Kitterman wrote:
> On Debian pip/pip3 does a user install by default, so if you do an
> 'upgrade' 
> of a system installed module, it should have no system wide effect,
> only for 
> the current user.

Thank you for that piece of info. I was really wondering why all pip
installed packages were --user installed. But does this also apply to
upgrading pip itself? So if I upgrade pip I would necessarily end up
with two different versions of pip? In that case what determines which
will be the "default" pip? And will this possibly create issues? Sorry,
I am a newbie.

> 
> The Buster (Debian 10) version of PyQt5 does not install the Python
> packaging 
> related metadata, so it not being listed by pip3 is not a surprise
> (for the 
> next release it is provided).

Well. Basically my problem is that, with the pip3 version supplied by
Debian, it is not possible to install pyqt5 without an error. One
apparently needs to upgrade pip (however, this appears to be a bug in
the pyqt5 package).

> For cases like this, I think the best practice is to work inside a
> virtualenv 
> where you can upgrade pip and install whatever you need via pip with
> no impact 
> on either your user or system python.

I will do this then.

Thank you very much Scott.

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

best practice when installing python packages Anil F Duggirala <anilduggirala@fastmail.fm> - 2020-04-25 19:30 +0200
  Re: best practice when installing python packages Scott Kitterman <debian@kitterman.com> - 2020-04-25 20:00 +0200
    Re: best practice when installing python packages Anil F Duggirala <anilduggirala@fastmail.fm> - 2020-04-26 15:40 +0200
      Re: best practice when installing python packages Anil F Duggirala <anilduggirala@fastmail.fm> - 2020-04-26 17:10 +0200

csiph-web