我试图在Ubuntu16.04桌面的干净安装上安装OpenStack DevStack。
当遇到以下错误时,设置将停止:
+inc/python:pip_install:359 env http_proxy= https_proxy= no_proxy= PIP_FIND_LINKS= SETUPTOOLS_SYS_PATH_TECHNIQUE=rewrite /opt/stack/requirements/.venv/bin/pip install -c /opt/stack/requirements/upper-constraints.txt -U pbr
env: ‘/opt/stack/requirements/.venv/bin/pip’: No such file or directory我还看到了许多关于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 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
Ignoring pyldap: markers 'python_version == "3.4"' don't match your environment
Ignoring pyldap: 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 401))
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.我正在运行Python2.7.12和3.5.1-3
我用sudo useradd -d /bin/bash -d /opt/stack -m stack设置了用户
谢谢
发布于 2018-06-02 22:11:25
在某个地方,virtualenv未能将pip和其他python东西安装到~/requirements/..venv/中。对DevStack有更好理解的人应该正确地解决这个问题,但同时手动运行以下命令为我解决了这个问题:
stack@mymachine:~/devstack$ virtualenv ../requirements/.venv/发布于 2018-06-04 15:06:27
在深入研究之后,我发现在脚本使一切正常运行之前,运行下面的代码。只是提醒一下我正在使用16.04:
sudo apt-get install git python-pip
sudo pip install --upgrade pip这是很有趣的,因为没有一个指南提到这一点,我认为脚本应该安装这个。我想知道自从最初的16.04版本发布以来,发生了什么变化?
我仍然收到所有Python警告(知道为什么吗?),但我现在有了一个工作的DevStack环境。
https://askubuntu.com/questions/1040238
复制相似问题