Installing Python 3.12 packages is not populating the "site-packages" folder. Why not?
Issue
On a couple of instances running RHEL, I'm trying to install Python 3.12 packages as the root user, but the /usr/lib/python3.12/site-packages directory isn't being populated. Why not? I use the syntax below:
bash$ sudo python3.12 -m pip install <package-name>
After installing the packages, I run python3.12 -m pip list and they all show up, but not under the site-packages folder. What am I missing?
Environment
- Red Hat Enterprise Linux
- Release 8
- Release 9
- Release 10
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.