在学ROS的时候报了下面的错误:

import-im6.q16: not authorized `rospy' @ error/constitute.c/WriteImage/1037.
from: too many arguments
.../xxx.py: line 5: syntax error near unexpected token `('

解决方法:
在Python脚本的第一行添加shebang就可以了:

#!/usr/bin/python3

相关文章:

  • 2021-05-20
  • 2022-01-13
  • 2022-02-06
  • 2021-12-25
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-09
  • 2021-06-02
  • 2022-12-23
  • 2021-10-31
  • 2022-12-23
  • 2021-07-03
相关资源
相似解决方案