我已经下载了python 3.9。但是,在通过命令行进行版本检查时,我确实得到了一个空行,而不是一个版本。
我在cmd上使用了以下命令:
python --version 发布于 2020-10-22 14:32:46
试试这个:
python3 --versionpython -Vpython,它将为您提供版本和其他信息:Python your version and some stuff
Type "help", "copyright", "credits" or "license" for more information.
>>>输入exit(),您就可以退出了
顺便说一下,python --version --version为您提供了更详细的输出
看看这个:https://docs.python.org/3/using/cmdline.html#generic-options
https://stackoverflow.com/questions/64476359
复制相似问题