Ubuntu中安装uwsgi(python3.6)

通过pip install uwsgi 和 apt-get install uwsgi 都遇到问题,没能成功。

  Running setup.py clean for uwsgi

Failed to build uwsgi

Installing collected packages: uwsgi

    Running setup.py install for uwsgi … error

    ERROR: Command errored out with exit status 1:

     command: /home/ubuntu/miniconda3/envs/huobi/bin/python -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘/tmp/pip-install-6f1zduqj/uwsgi_8a29510c828049cbb3ae2aea7fdfe49b/setup.py'”‘”‘; __file__='”‘”‘/tmp/pip-install-6f1zduqj/uwsgi_8a29510c828049cbb3ae2aea7fdfe49b/setup.py'”‘”‘;f=getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__);code=f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ install –record /tmp/pip-record-_en2mw49/install-record.txt –single-version-externally-managed –compile –install-headers /home/ubuntu/miniconda3/envs/huobi/include/python3.7m/uwsgi

         cwd: /tmp/pip-install-6f1zduqj/uwsgi_8a29510c828049cbb3ae2aea7fdfe49b/

    Complete output (153 lines):

    /home/ubuntu/miniconda3/envs/huobi/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: ‘descriptions’

      warnings.warn(msg)

    running install

    using profile: buildconf/default.ini

    detected include path: [‘/usr/lib/gcc/x86_64-linux-gnu/9/include’, ‘/usr/local/include’, ‘/usr/include/x86_64-linux-gnu’, ‘/usr/include’]

    Patching “bin_name” to properly install_scripts dir

最后解决办法:

conda install -c conda-forge uwsgi

转载随意~:陶醉seo » Ubuntu中安装uwsgi(python3.6)

赞 (7)
分享到:更多 ()