The user's site directory should be the right directory for such things.
python -m site --user-site
shows the correct path for your platform. Usually this is something like $HOME/.local/lib/python<version>/site-packages
You can even place the sitecustomize.py module sitecustomize.py , which will be automatically imported every time you start the line-to-line interface.
source share