我正在跟踪this tutorial以便连接ROS和凉亭。
当我跑步时
制作posix_sitl_default gazebo
[ 0%] Built target git_driverframework
[ 0%] Built target git_gps_devices
[ 0%] Built target uorb_headers
[ 2%] Built target df_driver_framework
[ 3%] Built target git_mavlink2
[ 3%] Built target git_mavlink
[ 3%] Built target git_ecl
[ 3%] Built target mixer_gen_legacy
[ 4%] Generating mixer_multirotor_6dof.generated.h
[ 4%] Generating mixer_multirotor_normalized.generated.h
[ 4%] Generating mixer_multirotor.generated.h
[ 5%] Built target ver_gen
('python import error: ', ImportError('No module named toml',))
('python import error: ', ImportError('No module named toml',))
Required python packages not installed.
On a GNU/Linux or MacOS system please run:
sudo pip install numpy toml
On Windows please run:
easy_install numpy toml
Required python packages not installed.
On a GNU/Linux or MacOS system please run:
sudo pip install numpy toml
On Windows please run:
easy_install numpy toml
我使用的是Ubuntu 16.04,所以我使用sudo pip install numpy toml但是:
The directory '/home/nando/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/nando/.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. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: numpy in /opt/anaconda/lib/python2.7/site-packages
Requirement already satisfied: toml in /opt/anaconda/lib/python2.7/site-packages
显然我已经满足了要求,但是当我运行第一个命令时,我仍然收到相同的错误消息。 我该如何解决这个问题?
答案 0 :(得分:0)
显然问题是我有python 2和3,我在3中安装了toml。 运行:
sudo -H pip2 install toml
为我解决了这个问题
答案 1 :(得分:0)
我通过使用pip3安装toml解决了该问题