Aug-08-2022, 08:30 AM
(This post was last modified: Aug-08-2022, 08:30 AM by Gribouillis.)
(Aug-07-2022, 09:44 PM)Skaperen Wrote: Output:This means that before the import of the 'site' module, the prefixes are CORRECT! They get corrupted somewhere when you run without the -S option. Try this perhaps
lt1a/forums/3 /home/forums 7> python3.8 -S -c "import sys; print(sys.prefix, sys.exec_prefix, sys.base_exec_prefix)"
/usr /usr /usr
lt1a/forums/3 /home/forums 8>
Output:python3.8 -S -c "import site; print(site.PREFIXES)"
and compare withOutput:python3.8 -S -c "import site; site.main(); print(site.PREFIXES)"