我已经使用ubuntu 16.04 LTS桌面版本创建了一个virtualbox映像,并通过简单的最小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
将点升级到版本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。
答案 0 :(得分:0)
你好,我有同样的问题。 升级点对我不起作用,但是解决方案是
cd ~/devstack/tools/
然后编辑
sudo gedit cap-pip.txt
该文件包含pip!=8,<10
将其更改为pip!=18,<20