我用supervisor运行python任务,当我尝试在python任务中使用multilprocess时,遇到了错误
"File/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py", line 124, in start
'daemonic processes are not allowed to have children'"
但是在终端执行命令"export PYTHONOPTIMIZE=1"
之后就可以了,任何人都可以告诉我在执行命令"export PYTHONOPTIMIZE=1"
时发生了什么
将^{} environment variable 设置为} command line switch 相同:
1
与使用^{您看到的错误消息是
AssertionError
异常;relevant section of the source code使用assert
:因此,设置环境变量只会抑制断言。问题本身并没有消失。你知道吗
相关问题 更多 >
编程相关推荐