Can I no longer install python packages using pip3?

Chris Green cl at isbd.net
Mon Jun 5 17:24:42 UTC 2023


On Mon, Jun 05, 2023 at 07:11:12PM +0200, Oliver Grawert wrote:
> hi,
> Am Montag, dem 05.06.2023 um 17:43 +0100 schrieb Chris Green:
> > I have recently upgraded one of my systems to Ubuntu 23.04 (Lunar
> > Lobster) and it seems as if Ubuntu's "protect me from myself" checks
> > have gone too far (for me anyway).
> 
> well, this is just Ubuntu (and debian as well) following an upstream
> PEP request:
> 
> https://peps.python.org/pep-0668/
> 
Yes, OK, it's a new Python policy rather than Ubuntu's.  I was just
feeling a bit frustrated! :-)


> there are some "workarounds" described at:
> 
> https://www.omgubuntu.co.uk/2023/04/pip-install-error-externally-managed-environment-fix
> 
None of which is very good really.

Option 1 - I already know that the package I want isn't in the Ubuntu
repositories, I wouldn't be using pip otherwise.

Option 2 - The articale itself admits "This isn’t the most awful
workaround but it is a little ‘messy’ as you need to remember to
specifically refer to the virtual environment when you need to run
something and, frankly, I have the memory capacity of a ZX Spectrum."
I'd need dozens of virtual environments.

Option 3 - It's for standalone programs, no use for library packages.


-- 
Chris Green



More information about the ubuntu-users mailing list