虚拟机安装ros时候出现“The directory ‘/home/xxx/.cache/pip‘...”的问题解决方法(亲测有用)

虚拟机安装ros,利用鱼香ROS提供的方法,在尝试了pip和pip3(贴出源码)后仍然报错

sudo pip install rosdepc
sudo pip3 install rosdepc

安装python3-pip(这里也贴上代码)后重新pip或者pip3一下

sudo apt-get install python3-pip

pip正常后,按照可喜的方向(双系统安装时未出现问题),这里继续sudo rosdepc init进行下一步就基本上大功告成了。但在虚拟机上安装时出现“The directory ‘/home/lzt/.cache/pip’ 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. ”的错误,后面跟了一堆“Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’: Failed to es

你可能感兴趣的:(ROS学习笔记,pip,ubuntu)