python - Ckan 安装失败,出现 : Unknown distribution option: 'message_extractors'

标签 python linux python-2.7 ckan

我正在虚拟环境中安装 build CKAN。我在安装某些模块时遇到问题。

(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

Full pip.log

假设“成功安装ckan”之后应该有这个命令(虚拟环境)

(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
  • 操作系统:Centos7 Linux localhost.localdomain 3.10.0-514.6.1.el7.x86_64 #1 SMP Wed Jan 18 13:06:36 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
  • Pip 安装包(virtualenv):
    • 应用目录 (1.4.0)
    • ckan(2.6.0,/usr/lib/ckan/default/src/ckan)
    • 打包(16.8)
    • 点子 (1.4.1)
    • py 解析 (2.1.10)
    • 设置工具 (34.1.1)
    • 六个 (1.10.0)
    • wsgiref (0.1.2)

最佳答案

当 funcsigs 需要 setuptools 17.1 或更新版本时,它提示 setuptools 版本仅为 0.9.8。

我不清楚这是在 funcsigs 中指定的位置,实际上我只是使用 setuptools 2.2 版安装它,所以我不确定这里发生了什么。也许日志具有误导性,并且其他东西需要更新版本的设置工具。无论如何,CKAN 对最新的 setuptools 版本非常满意,所以请升级它。

尝试升级设置工具的最简单方法是:

pip install -U setuptools

关于python - Ckan 安装失败,出现 : Unknown distribution option: 'message_extractors' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42099218/

相关文章:

linux - 删除了 '/bin/tempfile' ,现在 X 出现问题

python - 简单的 Sublime Text 3 python27 构建系统 - 将项目文件夹添加到路径

python - Pandas 中系列子集的条件变换

python - Pycurl导入错误: SSL Backend Mismatch

c - 用 C 阅读 PDF

Python追加到列表将删除unicode

python - 在没有实例化的情况下订购类方法

python - pandas Dataframe 到 JSON 字典列表

python - 如何将具有字典列的数据框转换为多级数据框

linux - 如何检查区域设置是否为 UTF-8?