Ive decided to transfer the sites to python 3.7. Plus, mod_wsgi is compiled for the specific python version, so I'm not sure it can handle the case. asyncio plugin for uWSGI (Python 3) uWSGI presents a complete stack for networked/clustered web applications, implementing message/object passing, caching, RPC and process management. I use Debian 9 uwsgi and nginx as a server for several Django sites. (run from inside the uwsgi src dir) python setup.py install python3 setup.py install python3.6 setup.py install Do this for each version of python installed on your system. There is a relevant WsgiPythonHome setting, but it is defined globally in the "server config" context, not per virtual host. You'll need to install uwsgi for each python version in their respective site-packages dirs. If not, what would be the best option to proceed? Once you've pip installed a version, it uses the cached wheel (hence cached Python version). It seems that uWSGI binds the Python 3 runtime during install. The question is: is it possible to use different python versions for different apache virtual hosts under the same apache+mod_wsgi instance? 2,214 1 16 26 Add a comment 3 Answers Sorted by: 2 I've run into this issue as well. To force the use of a different version of Python other than the default one. Newer versions uwsgi plugin-dir /tmp/uwsgi plugins python,cgi cgi /var/www/html/cgi-bin cgi-allowed-ext. So, everything is good on the python side. You can view the error logs in the HOME/admin/logs/uwsgi/id.log file. On a Debian-based distro an apt-get install build-essential python-dev will be enough. I know that I can have different virtual environments, separate python sandboxes. uWSGI is a (big) C application, so you need a C compiler (like gcc or clang) and the Python development headers. Now, I'm planning to upgrade one of the projects to python-2.7, another one to python-3.x. python -m pip install uWSGI model uWSGI operates on a client-server model. python -m pip install uwsgi Or install LTS ( long term support). For example: Install current stable version.
0 Comments
Leave a Reply. |