Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/349.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Babun显示Python的旧版本_Python_Python 3.x_Python 2.7_Babun - Fatal编程技术网

Babun显示Python的旧版本

Babun显示Python的旧版本,python,python-3.x,python-2.7,babun,Python,Python 3.x,Python 2.7,Babun,我试图使用Babun检查Python的当前版本(3.7.0)。但是,它显示的是旧版本(2.7.8)。使用Windows命令提示符时,我没有遇到问题 Windows命令提示符 Microsoft Windows [Version 10.0.17134.228] (c) 2018 Microsoft Corporation. All rights reserved. C:\Users\Gauranga Das>python --version Python 3.7.0 C:\Users\G

我试图使用Babun检查Python的当前版本(3.7.0)。但是,它显示的是旧版本(2.7.8)。使用Windows命令提示符时,我没有遇到问题

Windows命令提示符

Microsoft Windows [Version 10.0.17134.228]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\Gauranga Das>python --version
Python 3.7.0

C:\Users\Gauranga Das>
巴邦

在babun shell运行中:

pact install python3
然后在babun文件夹中运行update.bat,该文件夹将重新安装cywin。(无法从babun外壳内部运行update.bat,因为需要关闭所有babun外壳才能重新安装):

现在,我们可以通过运行以下命令来查看python 3版本:

python3 --version
update.bat
python3 --version