在Ubuntu系统中查看Python版本可以通过以下几种方法:
查看Python 3版本
```bash
python3 --version
查看Python 2版本 (如果系统上还有安装的话):
```bash
python --version
列出所有已安装的Python版本
```bash
ls /usr/bin/python*
使用`update-alternatives`管理Python版本(如果需要设置默认版本):
```bash
sudo update-alternatives --config python
请根据你的需求选择合适的方法来查看Python版本