Aug-06-2022, 06:33 PM
(Aug-06-2022, 07:12 AM)Gribouillis Wrote: Do you by any chance have a PYTHONHOME environment variable defined ?
Python documentation Wrote:PYTHONHOMEWhat is the output of
Change the location of the standard Python libraries. By default, the libraries are searched in prefix/lib/pythonversion and exec_prefix/lib/pythonversion, where prefix and exec_prefix are installation-dependent directories, both defaulting to /usr/local.
When PYTHONHOME is set to a single directory, its value replaces both prefix and exec_prefix. To specify different values for these, set PYTHONHOME to prefix:exec_prefix.
on your system?
Output:$ env | grep PYTHON
No.
Output:lt1a/forums/1 /home/forums 4> env | grep PYTHON
PYTHONSTARTUP=.init.py
PYTHONPATH=/home/forums:/home/forums/py:/home/forums/py/lib:/home/forums/lib:/usr/host/lib/py:/usr/host/lib:/usr/local/lib/py:/usr/local/lib
PYTHONDONTWRITEBYTECODE=True
lt1a/forums/1 /home/forums 5> box /usr/host/bin/{site,sys}.*
+----</usr/host/bin/site.getsitepackages>----+
| #!/usr/bin/env python3 |
| import site |
| print(repr(site.getsitepackages())) |
+--------------------------------------------+
+----</usr/host/bin/sys.base_exec_prefix>----+
| #!/usr/bin/env python3 |
| import sys |
| print(repr(sys.base_exec_prefix)) |
+--------------------------------------------+
+----</usr/host/bin/sys.exec_prefix>----+
| #!/usr/bin/env python3 |
| import sys |
| print(repr(sys.exec_prefix)) |
+---------------------------------------+
lt1a/forums/1 /home/forums 6> /usr/host/bin/site.getsitepackages;/usr/host/bin/sys.base_exec_prefix;/usr/host/bin/sys.exec_prefix
['/usr/host/bin/../../../local/lib/python3.8/dist-packages', '/usr/host/bin/../../../lib/python3/dist-packages', '/usr/host/bin/../../../lib/python3.8/dist-packages']
'/usr/host/bin/../../..'
'/usr/host/bin/../../..'
lt1a/forums/1 /home/forums 7>
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.