问题
This works:
root@host#/usr/bin/python26 script.py
Success
This results in an error:
user@host$/usr/bin/python26 script.py
ImportError: No module named OpenSSL
The users have identical PYTHONPATHs. Why does the 2nd user fail to import the module?
回答1:
Ran chmod 755 on all directories in python path.
Non-root user was able to execute script after this.
来源:https://stackoverflow.com/questions/46244850/python-module-import-error-for-one-user-but-not-the-other