开发者社区> 问答> 正文

convirt2.5 安装报错?报错

请各位大牛帮忙:

centos6.4 安装convirt2.5 报错如下:

root@convirt ~]# convirt-install/install/cms/scripts/setup_tg2

install common functions sourced.
DISTRO RedHat
VER 6.4
CODENAME Final
KERNEL 2.6.32-358.el6.x86_64
ARCH x86_64
Info: Sourcing /root/convirt-install/install/cms/scripts/../../../common/scripts/RedHat_functions
Info: Sourcing /root/convirt-install/install/cms/scripts/../common/RedHat_functions
New python executable in /root/convirt/tg2env/bin/python
Installing setuptools, pip, wheel...done.
Searching for extremes
Best match: Extremes 1.1.1
Processing Extremes-1.1.1-py2.6.egg
Extremes 1.1.1 is already the active version in easy-install.pth

Using /root/convirt/tg2env/lib/python2.6/site-packages/Extremes-1.1.1-py2.6.egg
Processing dependencies for extremes
Finished processing dependencies for extremes
Searching for mysql-python
Best match: MySQL-python 1.2.5
Processing MySQL_python-1.2.5-py2.6-linux-x86_64.egg
MySQL-python 1.2.5 is already the active version in easy-install.pth

Using /root/convirt/tg2env/lib/python2.6/site-packages/MySQL_python-1.2.5-py2.6-linux-x86_64.egg
Processing dependencies for mysql-python
Finished processing dependencies for mysql-python
Searching for tg.devtools
Best match: tg.devtools 2.0.2
Processing tg.devtools-2.0.2-py2.6.egg
tg.devtools 2.0.2 is already the active version in easy-install.pth

Using /root/convirt/tg2env/lib/python2.6/site-packages/tg.devtools-2.0.2-py2.6.egg
Processing dependencies for tg.devtools
error: PEAK-Rules 0.5a1.dev-r2582 is installed but PEAK-Rules==dev,>=0.5a1.dev-r2562 is required by set(['prioritized-methods'])
ERROR: installing TG2 (2.0.3).
ERROR: Failed creating Turbogears2 environment.

展开
收起
爱吃鱼的程序员 2020-06-14 15:43:43 655 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    已经找到解决办法
    可以发一下解决办法么,万分感谢<preclass="highlighttext">Inthefollowingtwofiles  convirt-install/install/cms/common/functions  convirt/install/cms/common/functions  Changetheline  $SUDOeasy_installvirtualenv  To  $SUDOeasy_installvirtualenv==1.11.6不能解决问题

    cd/root

    wget--no-check-certificate https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.11.6.tar.gz

    wget--no-check-certificate https://www.python.org/ftp/python/2.6.6/Python-2.6.6.tgz

    tar zxvf virtualenv-1.11.6.tar.gz

    cd virtualenv-1.11.6

    python setup.py install

    <spanstyle="line-height:1.5;font-size:10pt;">cd/root

     tarzxvfPython-2.6.6.tgz

    cdPython-2.6.6

     ./configure

    make&&makeinstall

    重装系统后,先要安装virtualenv-1.11.6.tar.gz和Python-2.6.6.tgz,再执行convirt-install的安装操作,我用的安装环境是centos6.7

    sudo./setup_tg2  <spanstyle="line-height:1.5;font-size:10pt;">安装的过程中还会遇到:

    <spanstyle="color:#E53333;">FinishedprocessingdependenciesforBeaker>=1.4

    <spanstyle="color:#E53333;">ls:无法访问/root/convirt/tg2env/lib/python2.4/site-packages/Beaker-*py2.4.egg/beaker/ext/google.py:没有那个文件或目录

    <spanstyle="color:#E53333;">TurboGearsenvironmnetsetupsuccessfully.

    解决方法:

    cd/root/convirt/tg2env/lib/

    ln-spython2.6python2.4

    cd/root/convirt/tg2env/lib/python2.6/site-packages

    ln-s/root/convirt/tg2env/lib/python2.4/site-packages/Beaker-1.3-py2.6.eggBeaker-1.3-py2.4.egg

    ln-s/root/convirt/tg2env/lib/python2.4/site-packages/Beaker-1.7.0dev-py2.6.eggBeaker-1.7.0dev-py2.4.egg

    重新执行sudo./setup_tg2安装即可。 


    2020-06-14 15:44:01
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载