Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 小齿轮';需要设置工具>;=0.8用于地区信息支持_Python_Pip_Setuptools_Devstack_Python Wheel - Fatal编程技术网

Python 小齿轮';需要设置工具>;=0.8用于地区信息支持

Python 小齿轮';需要设置工具>;=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

我正在尝试运行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 '/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