问题:ModuleNotFoundError: No module named 'rospkg'
解决:
1. ubuntu 先安装pip:
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py # 下载安装脚本
sudo python get-pip.py # 运行安装脚本
问题:Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: rospkg in /usr/lib/python2.7/dist-packages (1.2.9)
Requirement already satisfied: PyYAML in /usr/lib/python2.7/dist-packages (from rospkg) (3.12)
2. sudo pip install --target=/usr/local/lib/python2.7/site-packages rospkg (指定路径)