调用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

猜你喜欢

转载自www.cnblogs.com/cyleon/p/11345425.html