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

后端 未结 2 1267
再見小時候
再見小時候 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 21:58

    Have you installed the correct python plugin for uwsgi?

    http://packages.ubuntu.com/precise/uwsgi-plugin-python3

    Then in config (your .ini file) put python3 as plugin instead of python like this:

    [uwsgi]
    plugins         = python3
    
    # Rest of your configuration...
    
    0 讨论(0)
  • 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
    
    0 讨论(0)
提交回复
热议问题