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

一、调用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
上一篇:nginx检查报错 error while loading shared libraries: libprofiler.so.0: cannot open shared object file: No such file or directory


下一篇:python3: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory