Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
Bryan0Z
V2EX  ›  Linux

快被 supervisor 搞疯了

  •  
  •   Bryan0Z · Oct 9, 2015 · 15701 views
    This topic created in 3868 days ago, the information mentioned may be changed or developed.
    我把关键的命令贴出来
    输入: pip install supervisor
    提示: Requirement already satisfied (use --upgrade to upgrade): meld3>=0.6.5 in /usr/l ocalb/python2.7/dist-packages (from supervisor)

    然而我输入: supervisord
    却会报错: pkg_resources.DistributionNotFound: meld3>=0.6.5

    来万能的 V 站问问怎么解决
    22 replies    2019-07-08 16:36:53 +08:00
    mnhkahn
        1
    mnhkahn  
       Oct 10, 2015
    要不试试 apt-get 。。。
    wd
        2
    wd  
       Oct 10, 2015
    你执行的 supervisor 是你安装的那个么?
    wgjak47
        3
    wgjak47  
       Oct 10, 2015 via Android
    pip 和运行 supervisor 的 Python 版本是一样的吗?
    ry_wang
        4
    ry_wang  
       Oct 10, 2015
    meld3 的版本有问题吧,看看系统现在装的是啥版本
    yishenggudou
        5
    yishenggudou  
       Oct 10, 2015
    py 的 包管理 确实不严谨 依赖 经常高不对
    aivier
        6
    aivier  
       Oct 10, 2015
    pip install supervisor --upgrade
    pip install meld3 --upgrade

    我猜的,你试试吧,无害命令...
    tinyproxy
        7
    tinyproxy  
       Oct 10, 2015
    用 virtualenv 装好一个 supervisor 用,就是启动的时候有点恶心
    tkisme
        8
    tkisme  
       Oct 10, 2015
    一般还是 apt 吧,而且还是觉得写成一个服务脚本来启动舒心很多
    aiver
        9
    aiver  
       Oct 10, 2015
    一般 supervisor 是系统安装吧,很少用环境安装的
    henryon
        10
    henryon  
       Oct 10, 2015
    python 版本用的那个??
    Bryan0Z
        11
    Bryan0Z  
    OP
       Oct 10, 2015 via Android
    @henryon 2.7.3 ,怎么了
    henryon
        12
    henryon  
       Oct 13, 2015
    pythonpath 贴下?
    python -c “ import sys;print sys.path"
    Bryan0Z
        13
    Bryan0Z  
    OP
       Oct 13, 2015
    ['', '/usr/local/lib/python2.7/dist-packages/distribute-0.6.14-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/pip-7.1.2-py2.7.egg', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages','/usr/lib/pymodules/python2.7']

    @henryon
    像这样的~
    henryon
        14
    henryon  
       Jul 18, 2016
    @Bryan0Z pip install meld3 && pip install meld3== 0.6.5
    glasslion
        15
    glasslion  
       Aug 8, 2016
    诈尸啦, 刚刚也碰到这个问题:

    pip freeze 发现已安装 meld3== 1.xx , 怀疑是 setuptools 检查版本号的逻辑有 bug
    Google 后, 发现确实是 setuptools 的锅 https://github.com/Supervisor/meld3/issues/23


    正确的做法是升级 setuptools: pip install -U setuptools
    Bryan0Z
        16
    Bryan0Z  
    OP
       Aug 8, 2016 via Android
    @glasslion 噗,洛阳铲~
    leyle
        17
    leyle  
       Dec 5, 2017
    @glasslion 还是没有解决这个问题。你这个方法我试了下,还是不行。
    leyle
        18
    leyle  
       Dec 5, 2017   ❤️ 2
    @leyle 从源码安装了 meld3 就好了。。。

    git clone https://github.com/Supervisor/meld3
    cd meld3
    python setup.py install

    初创公司毫无任何包袱,还要守着 centos6.x,大清都亡了。
    Bryan0Z
        19
    Bryan0Z  
    OP
       Dec 5, 2017 via Android
    @leyle 噗,这个坑踩得人真多
    ijophy
        20
    ijophy  
       Dec 7, 2017
    @glasslion 16L 正解了

    centos 6 貌似有问题
    glasslion
        21
    glasslion  
       Dec 7, 2017
    @ijophy
    @leyle centos6 的 supervisor 版本太老了
    nan0nan59520
        22
    nan0nan59520  
       Jul 8, 2019
    @leyle 第一次看到这个方法的时候 我还不信....
    直到最后 ....
    感谢感谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1037 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 57ms · UTC 18:32 · PVG 02:32 · LAX 11:32 · JFK 14:32
    ♥ Do have faith in what you're doing.