当前位置: 首页 > 知识库问答 >
问题:

Ckan安装失败,原因是:未知的分发选项:“message_extractors”

吉玉石
2023-03-14
(default)[ckan@localhost ~]$ pip install -e git+https://github.com/ckan/ckan.git@ckan-2.6.0#egg=ckan
Obtaining ckan from git+https://github.com/ckan/ckan.git@ckan-2.6.0#egg=ckan
  Updating ./default/src/ckan clone (to ckan-2.6.0)
  Running setup.py egg_info for package ckan
    /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'message_extractors'
      warnings.warn(msg)

    no previously-included directories found matching '.git'
    warning: no files found matching 'CHANGELOG.txt'
    warning: no files found matching '*' under directory 'ckan_deb'
Installing collected packages: ckan
  Running setup.py develop for ckan
    /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'message_extractors'
      warnings.warn(msg)

    no previously-included directories found matching '.git'
    warning: no files found matching 'CHANGELOG.txt'
    warning: no files found matching '*' under directory 'ckan_deb'
    Creating /usr/lib/ckan/default/lib/python2.7/site-packages/ckan.egg-link (link to .)
    ckan 2.6.0 is already the active version in easy-install.pth
    Installing ckan-admin script to /usr/lib/ckan/default/bin

    Installed /usr/lib/ckan/default/src/ckan
Successfully installed ckan
Cleaning up...
(default)[ckan@localhost ~]$ pip install -r 
default/src/ckan/requirements.txt 
(...) 
Cleaning up... Command python setup.py egg_info failed with error code 1 in 
/usr/lib/ckan/default/build/funcsigs Storing complete log in 
/usr/lib/ckan/.pip/pip.log
(default)[ckan@localhost ~]$ paster
-bash: paster: command not found

另一个信息:

  • Python 2.7.5
  • /usr/lib/python2.7/site-packages(Python2.7)
  • 中的PIP 9.0.1
  • OS:Centos7 Linux localhost.localdomain 3.10.0-514.6.1.el7.x86_64#1 SMP Wed 1月18日13:06:36 UTC 2017 x86_64 x86_64 x86_64 gnu/Linux
  • PIP安装包(virtualenv):
    • AppDirs(1.4.0)
    • ckan(2.6.0,/usr/lib/ckan/default/src/ckan)
    • 包装(16.8)
    • PIP(1.4.1)
    • pyparsing(2.1.10)
    • SetupTools(34.1.1)
    • 六(1.10.0)
    • WSGIREF(0.1.2)

共有1个答案

邢烨烨
2023-03-14

它抱怨setuptools版本只有0.9.8,而funcsigs想要SetupTools17.1或更高版本。

我不清楚这在funcsigs中是在哪里指定的,实际上我刚刚用setuptools版本2.2安装了它,所以我不确定这里发生了什么。也许日志是误导性的,其他东西需要一个新版本的SetupTools。无论如何,CKAN对最新的setuptools版本非常满意,所以只要升级它就行了。

尝试升级setuptools的最简单方法是:

pip install -U setuptools
 类似资料: