我已经安装了预设置(setuptools、pbr和其他rpm),然后运行以下命令来安装:
**sudo python setup.py安装
安装命令错误:解析/home/skumar/ceilometer/setup.cfg时出错:OSError:[Errno 2]没有这样的文件或目录**
我不明白这个问题。
我的setup.cfg文件是:
https://github.com/openstack/ceilometer/blob/stable/icehouse/setup.cfg
最佳答案
在尝试安装新的python neutronclient时遇到了类似的问题。我对pbr一无所知,但很明显它用的是它。我从here中发现需要安装git。一旦我安装了git并重新运行setup.py install,它就会给我一个不同的错误:
error in setup command: Error parsing /tmp/python-neutronclient-contrail-icehouse/setup.cfg: Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?
我删除了解压缩的目录,通过git签出它,安装了python dev,并成功地重新运行setup.py安装。