我的机器操作系统是 Ubuntu 12.04 我尝试实施 all in one openstack 解决方案进行开发。但./stack.sh
没有成功。这看起来像是 pip 的包问题。因此,我通过sudo apt-get install python-iso8601
和手动安装了 iso8601 sudo pip install iso8601
。但问题仍然存在。以下是一条简短的消息
/local/bin/pip install --build=/tmp/pip-build.plxx4 -e /opt/stack/oslo.messaging
Obtaining file:///opt/stack/oslo.messaging
Running setup.py egg_info for package from file:///opt/stack/oslo.messaging
[pbr] Reusing existing SOURCES.txt
Requirement already satisfied (use --upgrade to upgrade): oslo.config>=1.2.0 in /opt/stack/oslo.config (from oslo.messaging==1.3.0a9.15.g57ebe0d)
Requirement already satisfied (use --upgrade to upgrade): stevedore>=0.14 in /usr/local/lib/python2.7/dist-packages (from oslo.messaging==1.3.0a9.15.g57ebe0d)
Downloading/unpacking iso8601>=0.1.9 (from oslo.messaging==1.3.0a9.15.g57ebe0d)
Could not find any downloads that satisfy the requirement iso8601>=0.1.9 (from oslo.messaging==1.3.0a9.15.g57ebe0d)
Cleaning up...
No distributions at all found for iso8601>=0.1.9 (from oslo.messaging==1.3.0a9.15.g57ebe0d)
Storing complete log in /home/shisoft/.pip/pip.log
+ exit_trap
+ local r=1
++ jobs -p
+ jobs=
+ [[ -n '' ]]
+ exit 1
shisoft@shisoft-HQStackA:~/devstack$ sudo pip install iso8601
Requirement already satisfied (use --upgrade to upgrade): iso8601 in /usr/lib/python2.7/dist-packages
Cleaning up...
答案1
Ubuntu 12.04 发布python-iso8601
版本0.1.4
,而在pipy.org你可以找到版本0.1.10
,满足安装程序的要求。
此外,日志明确表明您需要使用覆盖已安装的版本--upgrade
,因此您需要发出:
# pip install --upgrade 8601
之后,比较输出:
# dpkg -l python-iso8601
和:
# pip list | grep iso8601