Python 一个用户的模块导入错误,但另一个用户没有

Python module Import error for one user but not the other

这个有效:

root@host#/usr/bin/python26 script.py 
Success

这会导致错误:

user@host$/usr/bin/python26 script.py

ImportError: No module named OpenSSL 

用户具有相同的 PYTHONPATH。为什么第二个用户导入模块失败?

运行 chmod 755 在 python 路径中的所有目录上。

非 root 用户在此之后能够执行脚本。