我用ubuntu 16.04 LTS桌面版创建了一个虚拟盒映像,然后按照简单的最小local.conf执行步骤:https://docs.openstack.org/devstack/latest/index.html
问题是stack.sh
失败了这个输出:
+ inc/python:pip_install:359: sudo -H http_proxy= https_proxy= no_proxy= PIP_FIND_LINKS= SETUPTOOLS_SYS_PATH_TECHNIQUE=rewrite /usr/local/bin/pip2.7 install -c /opt/stack/requirements/upper-constraints.txt systemd-python
Ignoring asyncio: markers 'python_version == "3.4"' don't match your environment
Ignoring asyncio: markers 'python_version == "3.5"' don't match your environment
Ignoring dnspython3: markers 'python_version == "3.4"' don't match your environment
Ignoring dnspython3: markers 'python_version == "3.5"' don't match your environment
Ignoring mypy: markers 'python_version == "3.4"' don't match your environment
Ignoring mypy: markers 'python_version == "3.5"' don't match your environment
Ignoring jeepney: markers 'python_version == "3.4"' don't match your environment
Ignoring jeepney: markers 'python_version == "3.5"' don't match your environment
Ignoring SecretStorage: markers 'python_version == "3.4"' don't match your environment
Ignoring SecretStorage: markers 'python_version == "3.5"' don't match your environment
Ignoring Django: markers 'python_version == "3.4"' don't match your environment
Ignoring Django: markers 'python_version == "3.5"' don't match your environment
Ignoring cmd2: markers 'python_version == "3.4"' don't match your environment
Ignoring cmd2: markers 'python_version == "3.5"' don't match your environment
Ignoring typed-ast: markers 'python_version == "3.4"' don't match your environment
Ignoring typed-ast: markers 'python_version == "3.5"' don't match your environment
Requirement already satisfied: systemd-python===234 in /usr/local/lib/python2.7/dist-packages (from -c /opt/stack/requirements/upper-constraints.txt (line 417))
You are using pip version 9.0.3, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
我已经使用sudo pip install --upgrade pip
用户的stack
将pip升级到版本18.0并再次执行stack.sh
脚本并再次失败并出现相同的错误:
...
Collecting virtualenv===16.0.0 (from -c /opt/stack/requirements/upper-constraints.txt (line 532))
Using cached https://files.pythonhosted.org/packages/b6/30/96a02b2287098b23b875bc8c2f58071c35d2efe84f747b64d523721dc2b5/virtualenv-16.0.0-py2.py3-none-any.whl
Installing collected packages: virtualenv
Found existing installation: virtualenv 16.0.0
Uninstalling virtualenv-16.0.0:
Successfully uninstalled virtualenv-16.0.0
Successfully installed virtualenv-16.0.0
You are using pip version 9.0.3, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
我已经使用上面的命令升级了pip并且它已经显示成功,但在再次运行stack.sh
后,版本又回来了:
pip -V
pip 9.0.3 from /usr/local/lib/python2.7/dist-packages (python 2.7)
然后我再次升级:sudo easy_install -U pip
并显示成功升级,最后我尝试使用此命令:pip install --upgrade --force-reinstall pip
重新安装后显示pip -V
:
pip 18.0 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
但stack.sh
仍然失败,输出错误相同。然后看起来像stack.sh降级pip由于某些原因。
您好我有同样的问题。升级点对我不起作用,但解决方法是
cd ~/devstack/tools/
然后编辑sudo gedit cap-pip.txt
这个文件包含pip!=8,<10
更改为pip!=18,<20