"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 <[email protected]> on behalf of [email protected] <[email protected]> Date: Sunday, December 18, 2022 at 12:56 PM To: [email protected] <[email protected]> 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
