reason : stay CmakeList.test There is no configuration in it python file
resolvent :
The first one is : take python At the beginning of the document
#!/usr/bin/env python
Replace with
#!usr/bin/env python
The second kind : Connect... Through soft connection python link to python3
Terminal input command :
sudo ln -s /usr/bin/python3 /usr/bin/python
The third kind of : stay CmakeList.test It's equipped with python file
catkin_install_python(PROGRAMS
scripts/talker.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)