我收到了一个“command not found”错误。 0和$filestem是两个参数,我在脚本中写了以下内容。当我执行脚本时,我遇到了“command not found”错误。
echo -e "Enter the file stem name"
read filestem
python gen_par_final.py 0 $filestem
输入文件、Python脚本和Bash脚本都在同一个文件夹中。Python脚本在命令提示符下可以正常工作,但在脚本内部却不行。是否有需要设置路径或其他解决问题的方法?
read $filestem
吧? - karthikrwhich python
的输出是什么?python
是一个别名吗? - SethMMorton/usr/bin/Python
,看看是否在你的脚本中起作用。你可能需要弄清楚为什么Python安装时使用了大写字母。 - SethMMorton