Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem with importing module rospy in python(win10)

I have installed ROS on win10(http://wiki.ros.org/Installation/Windows), and the turtle can also move by pressing the arrow keys. I also installed pybullet through Anaconda3 and used python to import some modules such as

import pybullet as p 
import pybullet_data as pd
import numpy as np
import time

There is no problem in use. But importing rospy

import rospy

does not work, and it prompts "ModuleNotFoundError: No module named'rospy'". why is that? How to solve this problem?

like image 476
V One Avatar asked Jul 10 '26 22:07

V One


1 Answers

Try installing rospy package by

pip install roslibpy
like image 109
surya Avatar answered Jul 13 '26 12:07

surya