I have an nginx/uwsgi installation running web2py, and the setup seems to use python 2.6 by default. Is there a way to modify my settings so that python 2.7 is used instead? Thank you. asked 29 May '13, 12:24 will_ca |
The version of python is set when you build/install uwsgi. Since there are many ways to build/install uwsgi you will have to trace your steps and find where python entered the picture. If you used pip to install it, than the version of python that the pip binary uses is the one, if it was easy_install the same thing. If you installed it from a source tarball using commands check the steps used and their official docs including the ones provided with the tarball for where you set up python and change the version there. answered 29 May '13, 18:36 johns Thanks, johns. I installed nginx, web2py, and uwsgi using the script at the bottom of this page: http://community.webfaction.com/questions/7193/install-web2py-with-nginx-and-uwsgi. The only modification I made was to use the most recent uwsgi installation. uwsgi.xml's pythonpath just points to my web2py directory. Any ideas? Thanks.
(29 May '13, 20:47)
will_ca
|
Seem to have fixed it. Instead of simply making uwsgi with "make -f Makefile" (as in the script), I used "python2.7 uwsgiconfig.py --build" as per the suggestion here: http://stackoverflow.com/questions/13537373/swtich-python-version-on-uwsgi. Thanks! answered 29 May '13, 21:12 will_ca |