title: how to make uWsgi using python3.11
body: <p>I recently installed Python 3.11 on ubuntu 20.04</p>
  <p>As I am running a web-service with python &amp; flask through uWsgi, I'd like to move everything to the new version of python.</p>
  <p>I had reinstalled and updated a punch of packages, and get the application running fine through a direct call to python3.11 and listening on the port 80.</p>
  <p>Now I wanted to make the web service to use Python 3.11, but uWsgi still running the older version of python 3.8.</p>
  <p>I removed and reinstalled uWsgi, but it didn't moved to the newly installed Python 3.11.</p>
  <p>I couldn't figure out how to make uWsgi use a different python version. I tried to generate a new plugin as indicated in some old posts:</p>
  <pre><code>export PYTHON=python3.11
  uwsgi --build-plugin &quot;/usr/lib/uwsgi/plugins/python python311&quot;
  </code></pre>
  <p>it indicates &quot;The distutils package is deprecated&quot;</p>
  <p>Any idea how to make uWsgi use the last Python version?</p>