Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python -m sysconfig
#1
i get this:
Output:
lt1a/forums/2 /home/forums 4> python -m sysconfig|fgrep userbase userbase = "/home/forums/.local" lt1a/forums/2 /home/forums 5>
does Python use that directory for anything in particular? apparently, Xfce uses it. i hope there are no conflicts.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
(Aug-29-2022, 12:30 AM)Skaperen Wrote: i hope there are no conflicts.
There should be no conflicts. Python uses subdirectories such as lib/python3.10 or bin/ . This directory resembles /usr and /usr/local, only for a single user. Several programs can use it.
Reply
#3
so, whatever might be in /usr/local for the whole system could be put in ~/.local (such as subdirectory lib) for the individual user who might be installing something that she wants and no one else cares about (such as the system administrator).
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#4
Essentially yes. For example if you install the bm command line bookmarks utility, just type
Output:
python -m pip install bm
And this installs the executable in ~/.local/bin/bm

Normally, $HOME/.local/bin should be on your $PATH.
Skaperen likes this post
Reply


Forum Jump:

User Panel Messages

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