WinPython 3.8.5 给了我 Python 2.7

WinPython 3.8.5 gave me Python 2.7

我下载了WinPython3.8.5我看到里面的文件夹是python-3.8.5.amd64 很好,但是当我敲击 python --version(在 WinPython Scripts 文件夹中)时,它会抛出 2.7 :(

然后当我 pip 安装一个模块时,我有这个警告:

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

在程序文件中我有一个文件夹:Python.2715

这里有什么问题?请帮忙,我怎样才能用 WinPython 获得 Python 3?

  1. 将包含 python.exe 的 WinPython 文件夹放在您的 PATH 环境变量之前,而不是其他 Python 文件夹。通过 运行 python -V.

    验证版本
  2. 要安装软件包,请使用 python -m pip install ... 而不是 pip install ...。 (看起来 pip install 试图在你的 PATH 上使用另一个版本的 Python 的 pip 命令。也许直接原因是您的 WinPython 文件夹不包含 pip 命令或相关子文件夹不在您的 PATH 上。要修复 pip install,您可能需要重新安装 WinPython,然后向 WinPython 维护者报告错误。)