我遵循本教程的接口ROS和凉亭。
当我跑的时候
制作posix_sitl_default露台
[ 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我使用的是Ubuntu16.04,所以我使用sudo安装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显然,我已经满足了这些要求,但在运行第一个命令时,我仍然会收到相同的错误消息。我怎么才能解决这个问题?
发布于 2017-12-05 12:35:45
显然,问题是我有python 2和3,我在3中安装了toml。运行:
sudo -H pip2 install toml帮我解决了这个问题
发布于 2020-03-02 07:47:44
我通过使用pip3安装toml来解决这个问题。
https://stackoverflow.com/questions/47652820
复制相似问题