Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

no module named rospy after anaconda install

Hello all,

I was using ros kinetic with py scipts without problem, but then I tried installing Anaconda 3.5 and all my ROS is messed as you guess. So I uninstalled Anaconda 3.5 and installed Anaconda 2.7.

Now the problem is I cannot run py scripts, as they usually give error like ImportError: no module named 'rospy' and etc..

when I tried

which python , it shows me /usr/bin/python that I believe it is wrong python --version shows Python 2.7.12

I tried adding export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-package without comment but it didn't work.

where I am doing wrong? could you help me thank you

no module named rospy after anaconda install

Hello all,

I was using ros kinetic with py scipts without problem, but then I tried installing Anaconda 3.5 and all my ROS is messed as you guess. So I uninstalled Anaconda 3.5 and installed Anaconda 2.7.

Now the problem is I cannot run py scripts, as they usually give error like ImportError: no module named 'rospy' and etc..

when I tried

which python

which python , it shows me /usr/bin/python /usr/bin/python that I believe it is wrong

python --version --version

shows Python 2.7.12

I tried adding export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-package PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-package without comment but it didn't work.

where I am doing wrong? could you help me thank you