"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....@python.org> on 
behalf of c.bu...@posteo.jp <c.bu...@posteo.jp>
Date: Sunday, December 18, 2022 at 12:56 PM
To: Python-list@python.org <Python-list@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 ."
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to