一、调用python脚本报错

/usr/bin/env: python: No such file or directory

调用python脚本报错/usr/bin/env: python : No such file or directory

二、解决方法

原因是在windows上编写的脚本,使用dos2unix对脚本格式化一下

# yum install dos2unix -y
# dos2unix sendSMS.py

 

相关文章:

  • 2021-12-06
  • 2022-12-23
  • 2021-12-24
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-04
相关资源
相似解决方案