有个不好的习惯,老喜欢用root帐号。
运行twistd程序的时候,代码老是报错,找不到包之类的。
无意中看到:
http://linux.die.net/man/1/twistd
Note that if twistd is run as root, the working directory is not searched for Python modules.
是否是这个原因?
本文探讨了使用Twistd程序时遇到的问题,特别是当程序以root用户身份运行时出现的错误,如找不到Python模块等。文章指出,根据官方文档,如果Twistd作为root用户运行,则不会搜索当前工作目录下的Python模块。
有个不好的习惯,老喜欢用root帐号。
运行twistd程序的时候,代码老是报错,找不到包之类的。
无意中看到:
http://linux.die.net/man/1/twistd
Note that if twistd is run as root, the working directory is not searched for Python modules.

被折叠的 条评论
为什么被折叠?