linux执行python的脚本文件,提示提示No such file or directory
来源:互联网 发布:义乌淘宝培训学校 编辑:程序博客网 时间:2024/05/18 01:39
在window平台下,写好python脚本文件,迁移到linux平台,赋过可执行权限,执行该sh文件,却提示No such file or directory。ls 了下,确实有该文件,怎么会事呢,
难道是文件格式兼容性问题?用vim打开该sh文件,输入:
- :set ff
回车,显示fileformat=dos,重新设置下文件格式:
- :set ff=unix
保存退出:
- :wq
再执行,竟然可以了。这个事情又给我提了次醒,程序尽量在linux下编写,迁移时,也许会少很多问题。
vim的用法,可以参阅以前的blog:vim 常用命令
0 0
- linux执行python的脚本文件,提示提示No such file or directory
- Linux执行脚本却提示No such file or directory
- Linux下执行脚本提示No such file or directory
- Linux下执行脚本提示No such file or directory
- Linux,执行.sh文件,提示No such file or directory
- Linux,执行.sh文件,提示No such file or directory
- Linux执行.sh文件,提示No such file or directory的问题的解决方法
- Linux执行.sh文件,提示No such file or directory的问题的解决方法
- Linux执行.sh文件,提示No such file or directory的问题的解决方法
- Linux执行.sh文件,提示No such file or directory的问题
- 三种关于Linux执行.sh文件,提示No such file or directory错误的解决办法
- Linux执行.sh文件,提示No such file or directory的问题
- Linux执行.sh文件,提示No such file or directory的问题
- Linux执行可执行文件提示No such file or directory
- Linux 执行Python脚本出现:No such file or directory
- 执行shell脚本时提示bad interpreter:No such file or directory的解决办法
- Linux下执行.sh文件提示No such file or directory
- Linux下执行.sh文件提示No such file or directory
- UVALive 6440 Emergency Handling 优先队列
- CRM的新技术倡议
- char *p="abcdef"和char s[]="abcdef"存储在哪里?
- C++继承:公有 私有 保护
- 编译安装mysql
- linux执行python的脚本文件,提示提示No such file or directory
- LeetCode | Length of Last Word(最后一个单词的长度)
- vector,map,list,queue区别
- android shape使用方法
- MediaScanner分析 - MediaScanner.cpp
- CRM的好处
- 用带头循环链表表示队列的问题
- CRM理论与利润的艺术
- CRM的关键绩效指标和跟踪服务性能