Python 小齿轮';需要设置工具>;=0.8用于地区信息支持
我正在尝试运行devstackPython 小齿轮';需要设置工具>;=0.8用于地区信息支持,python,pip,setuptools,devstack,python-wheel,Python,Pip,Setuptools,Devstack,Python Wheel,我正在尝试运行devstack/stack.sh,但是它给了我以下错误: ERROR: 'pip wheel' requires setuptools >= 0.8 for dist-info support. To fix this, run: pip install --upgrade setuptools 我尝试了不同的命令,例如: pip install --upgrade setuptools 或 但是,在所有情况下,我都会得到以下信息: The directory '/ho
/stack.sh
,但是它给了我以下错误:
ERROR: 'pip wheel' requires setuptools >= 0.8 for dist-info support. To fix this, run: pip install --upgrade setuptools
我尝试了不同的命令,例如:
pip install --upgrade setuptools
或
但是,在所有情况下,我都会得到以下信息:
The directory '/home/nik/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag.
Requirement already up-to-date: setuptools in /usr/local/lib/python2.7/dist-packages
看起来像是
stack.sh
正在调用/usr/bin/python
,但是pip
属于/usr/local/bin/python
。当我卸载setuptools时,它给了我一个错误,没有可用的setuptools,所以我猜它指向了正确的目录。
The directory '/home/nik/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag.
Requirement already up-to-date: setuptools in /usr/local/lib/python2.7/dist-packages