我在虚拟环境中安装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
假设“成功安装ckan”应具有此命令(虚拟环境)
(default)[ckan@localhost ~]$ paster
-bash: paster: command not found
另一个信息:
答案 0 :(得分:1)
当funcsigs想要setuptools 17.1或更新时,它抱怨setuptools版本仅为0.9.8。
我不清楚在funcsigs中指定的位置,实际上我刚用setuptools 2.2安装它,所以我不确定这里发生了什么。也许日志有误导性,而其他东西需要更新版本的setuptools。无论如何,CKAN对最新的setuptools版本非常满意,所以只需升级即可。
尝试升级setuptools的最简单方法是:
pip install -U setuptools