搭建vatic , apache载入系统python,而不是期望的anaconda的~/anconda/bin/python

系统ubuntu 1404,

出现错误/var/log/apache/error.log信息

from operator import _compare_digest as compare_digest  ImportError: cannot import name _compare_dig


sudo lsof | grep apache | grep libpython 提示加载了:/usr/lilb/x86.../libpython...


git clone mod_wsgi

编译:./configure  --with-python=/home/silva/anaconda/bin/python LDFLAGS="-Wl,-rpath=/home/silva/anaconda/lib"

make , sudo make install 

就好了

你可能感兴趣的:(深度学习,计算机视觉,linux,linux编译,python)