Cannot install uWSGI on Ubuntu 14.04 with Python 3.4 (paths?)

后端 未结 2 1266
再見小時候
再見小時候 2021-01-04 21:34

The big picture is that I want Ubuntu server with nginx, uWGI, and Python 3 (virtualenv) to start some project.

I did follow recommendation that can be found on vari

2条回答
  •  别那么骄傲
    2021-01-04 22:21

    Install Python 3:

    sudo apt-get install python3
    

    Install Python 3 headers to build uWSGI from source:

    sudo apt-get install python3-dev
    

    Create a Python 3 virtualenv in a venv subdir of current dir (prepend the command with sudo if current dir is privileged):

    virtualenv -p python3 venv
    

    Activate the venv to be the target for pip (. is a shortcut for source):

    . venv/bin/activate
    

    Finally, install uWSGI (again, sudo if in a privileged dir):

    pip install uwsgi
    

提交回复
热议问题