我正在使用Cygwin的tcsh shell。我安装了Cygwin,因为我有一个教授在Linux/Mac中给出了一堆指令,它们都使用csh命令。
当我输入这个时:
cat some_file.txt | some_python_script.py
我明白这个:
some_python_script.py: Command not found.
其中some_python_script.py是应该在标准配置上运行的脚本。如何让我的Python脚本在Cygwin中工作,就像在linux/Mac环境中一样?
谢谢!
您要求它将some_file.txt
的内容传送到some_python_script.py
它期待那里的命令。通常你会运行这样的python脚本
python some_python_script.py
如果你想将some_file.txt
的内容管道放入其中,你会这样做
cat some_file.txt | python some_python_script.py