我的django/uwsgi/python因分段错误而崩溃,因为uWSGI显然正在加载不同版本的Python.
我刚刚使用pip安装了uWSGI.这个SO问题解决了涉及从源代码编译的解决方案,但我想避免这种情况.
mihai$ /usr/bin/python Python 2.7.5 (default, Aug 25 2013, 00:04:04) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import cv2 Segmentation fault: 11 mihai$ /usr/local/bin/python Python 2.7.6 (v2.7.6:3a1db0d2747e, Nov 10 2013, 00:42:54) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import cv2 >>>
有什么建议?
我希望有一些--flag可以告诉uWSGI使用什么版本的python ...