ros and python
In /usr/bin/rosdep
, there is a note:
#!/usr/bin/python
Ubuntu 16’s default python interpreter is python2.7.
so there is no error when we run
sudo rosdep init
However, once you change your system default python version(eg. python3.5),
the interpreter cannot find the module rosdep
anymore.
Hence, there are two solutions.
First, change the default python version back to python2.7
;
Second, change the 1st line of rosdep
to
#!/usr/bin/python2
ps. I write this in English just because there is no Chinese input method in my Ubuntu
and I’m too lazy to install one.