ubuntu 运行python subprocess 出现/bin/sh: 1: source: not found 错误
生活随笔
收集整理的这篇文章主要介绍了
ubuntu 运行python subprocess 出现/bin/sh: 1: source: not found 错误
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
错误:
/bin/sh: 1: source: not found运行 ls -l /bin/sh 后显示/bin/sh -> dash
解决方案:
1、sudo dpkg-reconfigure dash
2、在出现界面选择no
3、再运行ls -l /bin/sh 后显示/bin/sh -> bash
总结
以上是生活随笔为你收集整理的ubuntu 运行python subprocess 出现/bin/sh: 1: source: not found 错误的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 知识图谱学习笔记-PageRank
- 下一篇: python发展前景怎么样-python