问题:
Python subprocess call returns “command not found”, Terminal executes correctly
具体为:/bin/sh 1 not found
出错的命令没有添加到环境变量路径(PATH)中。
解决:
打开配置文件,并将该命令的包路劲添加到最后
sudo gedit /etc/profile
立刻生效(这步对我无效,我重启后才生效的)
source /etc/profile