Python module Import error for one user but not the other

落花浮王杯 提交于 2019-12-13 03:46:24

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!