Command 'vcs' not found, did you mean


問題描述

已經成功執行

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/


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM