【问题标题】:Scipy ImportError: No module named transformScipy ImportError:没有名为转换的模块
【发布时间】:2019-05-01 19:02:52
【问题描述】:

我在 ROS 中使用 python 脚本。 Ros 使用 python 2.7,我使用的 scipy 版本是 0.19.1。 报如下错误:

from scipy.spatial.transform import Rotation as R ImportError: No module named transform

【问题讨论】:

  • Rotation 在 scipy 1.2.0 中添加。您需要升级 scipy 才能使用它。

标签: python scipy scipy-spatial


【解决方案1】:

尝试将 scipy 升级到 1.2.0 版:

pip install scipy==1.2.0

【讨论】:

    【解决方案2】:

    在 python 3.7.3 上工作。确保它在 2.7 上可用

    【讨论】:

    • 如何为旧的 python 更正它?我是python的新手
    • 无法安装python 3.7 ?
    • 尝试导入数学或其他内容,因为我尝试使用 2.7 并且它正在在线 IDE 上运行
    • Ros 自动使用 python2.7。谢谢,我试试别的功能
    • 投反对票,抱歉。重要的是 scipy vwrsion。 Python 版本无关紧要。
    猜你喜欢
    • 2014-09-08
    • 1970-01-01
    • 2013-03-11
    • 2014-08-17
    • 2012-12-07
    • 2020-01-21
    • 2018-02-03
    • 1970-01-01
    • 2012-05-23
    相关资源
    最近更新 更多