doggiejohn 发表于 2017-3-23 18:56:09

安装Openstack提示没有安装setuptools

+ sudo -H http_proxy= https_proxy= no_proxy= PIP_FIND_LINKS= SETUPTOOLS_SYS_PATH_TECHNIQUE=rewrite /usr/local/bin/pip install -c /opt/stack/requirements/upper-constraints.txt -U os-testr
Ignoring dnspython3: markers "python_version=='3.4'" don't match your environment
Collecting os-testr===0.6.0 (from -c /opt/stack/requirements/upper-constraints.txt (line 188))
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Using cached os_testr-0.6.0-py2-none-any.whl
Collecting pbr===1.8.1 (from -c /opt/stack/requirements/upper-constraints.txt (line 214))
Using cached pbr-1.8.1-py2.py3-none-any.whl
Collecting python-subunit===1.2.0 (from -c /opt/stack/requirements/upper-constraints.txt (line 269))
Using cached python_subunit-1.2.0-py2.py3-none-any.whl
Collecting testrepository===0.0.20 (from -c /opt/stack/requirements/upper-constraints.txt (line 314))
Using cached testrepository-0.0.20.tar.gz
setuptools must be installed to install from a source distribution
You are using pip version 7.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
+ exit_trap
+ local r=1
++ jobs -p
+ jobs=
+ [[ -n '' ]]
+ kill_spinner
+ '[' '!' -z '' ']'
+ [[ 1 -ne 0 ]]
+ echo 'Error on exit'
Error on exit
+ generate-subunit 1490265890 243 fail
./stack.sh: line 462: generate-subunit: command not found

安装Devstack的时候,提示setuptools must be installed to install from a source distribution。
但是我已经 sudo pip install --upgrade pip安装了,但是每次运行./stack.sh还是报错。
请大侠帮手看看,谢谢!

einhep 发表于 2017-3-24 10:06:03

楼主试试下面方法
pip install -U virtualenv


pip install -U pip

页: [1]
查看完整版本: 安装Openstack提示没有安装setuptools