pip/setuptools: Entry points not visible from pkexec-root-environment

Weatherby,Gerard gweatherby at uchc.edu
Sun Dec 18 13:45:39 EST 2022


"sudo python3 -m pip
install -e ."

You’ve already started down a problematic road. I recommend installing root level Python packages through your system package manager. (apt for debian, or whatever RedHat is using now).

If a package you need isn’t available from the system level virtual environments are your friend.

I’ve never used pkexec. Generally, just use sudo. There’s an -E flag to preserve the environment. We generally write bash wrappers that set whatever environment we need.


From: Python-list <python-list-bounces+gweatherby=uchc.edu at python.org> on behalf of c.buhtz at posteo.jp <c.buhtz at posteo.jp>
Date: Sunday, December 18, 2022 at 12:56 PM
To: Python-list at python.org <Python-list at python.org>
Subject: pip/setuptools: Entry points not visible from pkexec-root-environment
*** Attention: This is an external email. Use caution responding, opening attachments or clicking on links. ***

Hello,

when I install a package on a GNU/Linux system via "sudo python3 -m pip
install -e ."


More information about the Python-list mailing list