Python Forum
looking fo documentation for module files
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
looking fo documentation for module files
#30
(Aug-06-2022, 07:12 AM)Gribouillis Wrote: Do you by any chance have a PYTHONHOME environment variable defined ?

Python documentation Wrote:PYTHONHOME
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.
What is the output of
Output:
$ env | grep PYTHON
on your system?

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.
Reply


Messages In This Thread
RE: looking fo documentation for module files - by Skaperen - Aug-06-2022, 06:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  finding which source files import a module Skaperen 3 2,637 Apr-22-2019, 09:28 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020