roslaunch 报错 numpy与python版本冲突

报错:

File "/usr/lib/python3/dist-packages/numpy/core/__init__.py", line 17, in <module> from . import multiarray File "/usr/lib/python3/dist-packages/numpy/core/multiarray.py", line 14, in <module> from . import overrides File "/usr/lib/python3/dist-packages/numpy/core/overrides.py", line 7, in <module> from numpy.core._multiarray_umath import ( ImportError: /usr/lib/python3/dist-packages/numpy/core/_multiarray_umath.cpython-38-x86_64-linux-gnu.so: undefined symbol: cblas_sgemm During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/ros/noetic/lib/nmea_navsat_driver/nmea_topic_driver", line 35, in <module> import libnmea_navsat_driver.nodes.nmea_topic_driver File "/opt/ros/noetic/lib/python3/dist-packages/libnmea_navsat_driver/nodes/nmea_topic_driver.py", line 39, in <module> from libnmea_navsat_driver.driver import RosNMEADriver File "/opt/ros/noetic/lib/python3/dist-packages/libnmea_navsat_driver/driver.py", line 41, in <module> from tf.transformations import quaternion_from_euler File "/opt/ros/noetic/lib/python3/dist-packages/tf/__init__.py", line 31, in <module> from .listener import Transformer, TransformListener, TransformerROS File "/opt/ros/noetic/lib/python3/dist-packages/tf/listener.py", line 29, in <module> import numpy File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 142, in <module> from . import core File "/usr/lib/python3/dist-packages/numpy/core/__init__.py", line 47, in <module> raise ImportError(msg) ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy c-extensions failed. - Try uninstalling and reinstalling numpy. - If you have already done that, then: 1. Check that you expected to use Python3.8 from "/usr/bin/python3", and that you have no directories in your PATH or PYTHONPATH that can interfere with the Python and numpy version "1.17.4" you're trying to use. 2. If (1) looks fine, you can open a new issue at https://github.com/numpy/numpy/issues. Please include details on: - how you installed Python - how you installed numpy - your operating system - whether or not you have multiple versions of Python installed - if you built from source, your compiler versions and ideally a build log - If you're working with a numpy git repository, try `git clean -xdf` (removes all files not under version control) and rebuild numpy. Note: this error has many possible causes, so please don't comment on an existing issue about this - open a new one instead.

利用python查看nunpy版本

python3

import numpy

报错信息与运行roslaunch一致。 

我的解决:

更新python3的numpy

sudo pip3 install --upgrade numpy

  • 19
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

点云兔子

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值