推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
magicalchemist
V2EX  ›  Python

[问题请教]部署时安装 uwsgi 时问题?请问 gcc7 冲突吗?

  •  
  •   magicalchemist · Jun 14, 2019 · 2565 views
    This topic created in 2660 days ago, the information mentioned may be changed or developed.

    请问 gcc7 与 uwsig 之间有冲突吗? 版本:

    • gcc7
    • 已经按照 uwsgi 官方安装 apt-get install build-essential python-dev
    • 尝试了 pip 安装和源程序下载后 make。

    问题图片如下: Snipaste_2019-06-14_12-51-59.png

    Supplement 1  ·  Jun 14, 2019

    猜测是gcc7问题后,将注意力放在安装多版本gcc上。在安装gcc其他版本时有报错,参考文章后解决

    • 文章链接:aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2ExNDUxMjcvYXJ0aWNsZS9kZXRhaWxzLzg4OTU0MTIy
    • 安装好低版本gcc后尝试安装uwsgi安装成功。
    4 replies  •  2019-06-15 10:14:21 +08:00
    magicalchemist
        1
    magicalchemist  
    OP
       Jun 14, 2019
    再补充一个后面遇到的问题,方便其他遇到此问题的人:
    uwsgi 启动提示找不到 libpcre.so.1 解决方法:链接 aHR0cHM6Ly93d3cuamlhbnNodS5jb20vcC80ZGIzZTM2YmQ0OTE=
    myyou
        2
    myyou  
       Jun 14, 2019
    你这个问题,我解决不了,但是推荐你用 gunicorn,这是纯 Python 写的,不会有 uwsgi 的 gcc 问题。
    magicalchemist
        3
    magicalchemist  
    OP
       Jun 14, 2019
    @myyou 好的,多谢,问题已经解决了。换了低版本的 gcc 成功了。因为 Django 框架已经学的差不多了,准备 Django+uwsgi+nginx 这个技术路线走一波。
    LGA1150
        4
    LGA1150  
       Jun 15, 2019 via Android
    -fno-lto
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   910 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:52 · PVG 06:52 · LAX 15:52 · JFK 18:52
    ♥ Do have faith in what you're doing.