Python 3 Module install folder

Hi everyone

I install python’s module on my Jetson by pip command and I saw 2 folder where module installed:
folder 1: /home/jetson/.local/lib/python3.6/site-packages
folder 2: /usr/local/lib/python3.6/dist-packages
Some module installed into folder 1 and some module installed into folder 2
With the app which has import module installed from folder 2 I can make run at boot by service file in systemd but if the module import from folder 1, when I make run at boot, it has error no module name… (although I can run normally when call from terminal by command: python3 app_name.py)
Any body know why exist 2 folder where python’s module installed and how to make app run at boot when module installed to folder 1?

1 Like

hello duyhuanctm3,

it’s folder1 as an approach to install and use pip without root permission,
you may install all python modules manually via pip in a local directory without root.
check this, for more details. Install and use pip in a local directory without root/sudo access. · GitHub
thanks

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.