Python,pip不缓存

Python,pip不缓存,python,pip,Python,Pip,我很难过,pip下载缓存不能在我的nfs上工作。是的,nfs确实有效 在我的客户机服务器中 /root/.pip/pip.conf [global] download-cache=/mnt/nfs/data/nfs 我安装了一个pip包,但在/mnt/nfs/data/nfs中没有安装任何东西 这很有效 touch /mnt/nfs/data/nfs/dude.txt ls /mnt/nfs/data/nfs/ dude.txt 为什么当我安装它时,它没有做它应该做的事情 更新: 当我将配置

我很难过,pip下载缓存不能在我的nfs上工作。是的,nfs确实有效

在我的客户机服务器中

/root/.pip/pip.conf
[global]
download-cache=/mnt/nfs/data/nfs
我安装了一个pip包,但在/mnt/nfs/data/nfs中没有安装任何东西

这很有效

touch /mnt/nfs/data/nfs/dude.txt
ls /mnt/nfs/data/nfs/
dude.txt
为什么当我安装它时,它没有做它应该做的事情

更新:

当我将配置更改为下面时,我得到下面的消息,但dir中没有任何内容。我没有用sudo。我是根

[global]
#download-cache=/mnt/nfs/data/nfs
cache-dir=/mnt/nfs/data/nfs


pip install --upgrade pyes
The directory '/mnt/nfs/data/nfs' or its parent directory is not
owned by the current user and caching wheels has been disabled.
check the permissions and owner of that directory. If executing
pip with sudo, you may want sudo's -H flag.

pip安装过程中,您是否尝试过传递
--下载缓存/mnt/nfs/data/nfs
,是否安装了
pip
的最新版本?是的,sudo-H pip2安装--升级pip-8.1.2-py2.7。您是否以
root
sudo pip
的身份运行
pip
?如果
sudo
作为用户:将
.pip/pip.conf
放在
$HOME
中,代替
/root/
。谁拥有
/mnt/nfs/data/nfs
?您是否在
pip安装期间尝试过传递
--下载缓存/mnt/nfs/data/nfs
,是否安装了
pip
的最新版本?是的sudo-H pip2安装--升级pip-8.1.2-py2.7。您是否以
root
身份运行
pip
还是作为普通用户使用sudopip?如果
sudo
作为用户:将
.pip/pip.conf
放在
$HOME
中,而不是
/root/
。谁拥有
/mnt/nfs/data/nfs