How do I use a conda environment with mod_wsgi?

前端 未结 3 2136
长发绾君心
长发绾君心 2021-02-07 05:47

My first post, and I\'m new to both Python and Apache, so please go easy on me. I have a Python web application in a conda environment that serves up content just fine using Fl

3条回答
  •  执笔经年
    2021-02-07 06:49

    I'm late to the party on this but I was having the same problem. For what its worth, I didn't have to recompile anything and was able to get this to work by including something like this in my VirtualHost configuration using the system-installed mod_wsgi:

    WSGIDaemonProcess mysite python-path=/path/to/anaconda2/lib/python2.7/site-packages
    

    Note that this points to the site-packages directory.

提交回复
热议问题