不能在 cygwin 中使用 python 2.7

Can't use python 2.7 with cygwin

我正尝试在我的 Cygwin 终端上使用 python 2.7。我对 Cygwin/installing 包不是很好,但这是我到目前为止尝试过的。

我重新运行了 Cygwin 安装程序并选择了 python27 包,但这似乎不起作用。我已经从 python 网站下载并安装了 python 2.7。

运行 任何 python 命令都会让我“-bash: python: command not found”

运行 python3 --version 让我得到“Python 3.6.10”

如有任何帮助,我们将不胜感激。谢谢!

同时安装 python2 软件包

它包括所需的链接:

python2: Python 2 language interpreter

2020-05-23 09:41           0 usr/bin/pydoc -> pydoc2.7
2020-05-23 09:41           0 usr/bin/pydoc2 -> pydoc2.7
2020-05-23 09:41           0 usr/bin/python -> python2.7.exe
2020-05-23 09:41           0 usr/bin/python2 -> python2.7.exe
2020-05-23 09:42          45 usr/share/man/man1/python.1.gz
2020-05-23 09:42          46 usr/share/man/man1/python2.1.gz

如上所述: https://cygwin.com/packages/x86/python2/python2-2.7.18-1