Reputation: 31
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?
Upvotes: 3
Views: 12131
Reputation: 6369
Consindering you are using anaconda, open anaconda prompt and then enter the command:
conda install -c conda-forge ros-rospy
to install the rospy library
Upvotes: 0