castlabs / pam-python

A PAM Module that runs the Python interpreter, thus allowing PAM Modules to be written in Python
http://pam-python.sourceforge.net/
14 stars 3 forks source link

PAM Python module does not support third party libraries #2

Open nguyen102 opened 1 month ago

nguyen102 commented 1 month ago

The PAM module here uses python3. However, importing third party libraries in the python script does not work.

I tried doing both pip install boto3 and pip3 install boto3. However, when I run my python script with pam_python3.so I'm getting the error ModuleNotFoundError: No module named 'boto3'

What is the proper way to allow proper import of third party libraries?

liuberlin commented 1 week ago

I have the same issus,when import requests, then ModuleNotFoundError: No module named 'requests', the requests are installed with python2 and python3