本文主要是介绍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
这篇关于roslaunch 报错 numpy与python版本冲突的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!