skip to Main Content

I tried different ways of installation of numpy, but the problem that I’m facing is: there is no **numpy **in the list when I call rospack list-names. Even with installed numpy, when I can see its version and location, ROS still cannot find it and gives me error that no such module is found.

Thank you for answers!

tried installing through different envoronments like pip, pipenv and normally (sudo apt …).
Maybe there is some way to show ROS where to find a package?

2

Answers


  1. You cannot see numpy as a ROS package because it has no ROS installation procedure at all. Just try to type:

    python3
    import numpy
    

    If you would see an error, then you need to check numpy is installed on your system. Then you do not have to list it in your package.xml, but you can find the component Python::NumPy in CMakeLists.txt once you have CMake version 3.14 or newer.

    Login or Signup to reply.
  2. I think your problem is using python3 with Melodic or other Ros distro which doesn’t work with python3. This command may be solve:

    pip2 install numpy
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search