Where to keep local Python modules?

Chris Green cl at isbd.net
Sat Jul 24 04:52:23 EDT 2021


Cameron Simpson <cs at cskk.id.au> wrote:
> 
> Almost everything I use comes either from pip or from my own modules. My 
> $PYTHONPATH on the Mac has this:
> 
>     /Users/cameron/lib/python:/Users/cameron/rc/python
> 
> being, respectively, my personal modules and a place for third party 
> modules which do not come from pip. That latter is an empty set, but 
> it's there. I doubt you'd need to bother with the latter; I doubt I need 
> to either.
> 
Yes, I think maybe something in a 'lib' directory somewhere makes
sense. I like to keep my home directory as uncluttered as possible
though so maybe I'll keep the lib directory under ~/.config or
~/.local.

-- 
Chris Green
·


More information about the Python-list mailing list