python - Babun 显示旧版本的 Python
问题描述
我正在尝试使用 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>
巴本
LAPTOP-298AIKEQ% python --version
Python 2.7.8
LAPTOP-298AIKEQ%
解决方案
在 babun shell 中运行:
pact install python3
然后在 babun 文件夹中运行 update.bat,它将重新安装 cywin。(无法从 babun shell 内部运行 update.bat,因为需要关闭所有 babun shell 才能重新安装):
update.bat
现在我们可以通过运行查看 python 3 版本:
python3 --version
推荐阅读
- swift - 扩展的私有限定符产生文件私有行为
- database - 使用 Timer 从 firebase 数据库中检索数据
- python - Tkinter 中的动画 Matplotlib 绘图
- visual-studio-code - 如何从 VSCode 附加到另一台计算机上运行的进程?
- python - Geopandas:如何将列几何转换为字符串?
- node.js - 部署到heroku后应用程序错误
- formatting - 如何对大于 X 的 SharePoint 列表(同一列)中的计算值进行颜色编码?
- javascript - 匹配用户流Nodejs
- c# - IValueConverter 作为对象返回而不是预期的值
- php - 来自变量的 PHP 正则表达式匹配