How do i find my user base directory for python?



  • The user base area is where the user installed python modules are installed. This was a feature that came in as of python 2.6. The idea was to keep the site-wide modules separate from user installed modules.

    The site module is a site configuration module.

    $ python -m site --user-base
    /home/trainer/.local
    

Log in to reply
 

© Lightnetics 2024