問題描述
已經成功執行
pip install -U colcon-common-extensions vcstool
但是執行如下命令時報錯:
vcs import src < fastrtps.repos
Command 'vcs' not found, did you mean:
...
Try: sudo apt install <deb name>
原因
pip install
可能把 vcs
安裝到了 ~/.local/bin/
解決方案
運行如下命令,修改 PATH
環境變量
PATH=$PATH:~/.local/bin
參考鏈接
https://answers.ros.org/question/386163/vcs-command-not-found/