找到python的安装目录:
which python3
cd到安装路径的bin目录下,我这里是:
cd /Library/Frameworks/Python.framework/Versions/3.7/bin/
目录下有一个mod_wsgi-express:
mod_wsgi-express module-config
打印出如下内容:
LoadModule wsgi_module "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mod_wsgi/server/mod_wsgi-py37.cpython-37m-darwin.so"
WSGIPythonHome "/Library/Frameworks/Python.framework/Versions/3.7"
其中LoadModule wsgi_module后面的就是路径
网友评论