Getting Apache and mod_wsgi to run Anaconda Python 3.6.0 for a flash app

I have a virtual server running Ubuntu 16.04 and a LAMP stack installed. I also have the latest Anaconda installed and set as my default Python. I created a basic application like the one described in the following tutorial: https://www.digitalocean.com/community/tutorials/how-to-deploy-a-flask-application-on-an-ubuntu-vps?

When I return sys.version

instead of a welcome message, it returns python 2.7 when viewed in a browser. My question is how do I get this to use the same python installation as my system default, Anaconda Python 3.6.0?

+3


source to share





All Articles