首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装python包"toml“

无法安装python包"toml“
EN

Stack Overflow用户
提问于 2017-12-05 11:43:08
回答 2查看 5.3K关注 0票数 0

我遵循本教程的接口ROS和凉亭。

当我跑的时候

制作posix_sitl_default露台

代码语言:javascript
复制
[  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,但是:

代码语言:javascript
复制
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

显然,我已经满足了这些要求,但在运行第一个命令时,我仍然会收到相同的错误消息。我怎么才能解决这个问题?

EN

回答 2

Stack Overflow用户

发布于 2017-12-05 12:35:45

显然,问题是我有python 2和3,我在3中安装了toml。运行:

代码语言:javascript
复制
sudo -H pip2 install toml

帮我解决了这个问题

票数 1
EN

Stack Overflow用户

发布于 2020-03-02 07:47:44

我通过使用pip3安装toml来解决这个问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47652820

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档