小编Pie*_*ero的帖子

Ubuntu 18.04 中的 Python 版本

我开始学习 python 并开始使用 ubuntu 18.04 和 atom 编辑器进行开发。

我没有安装 Python,也许它包含在 ubuntu18.04 中,但我看到了一些非常有趣的东西。

我使用的是 Python 2.7 版,但在文件夹中我有 2.7 版和 3.0 版的库。如果我想切换使用3.0版本怎么办?

这是控制台的输出,有人可以给我一些信息谢谢

$ which python
/usr/bin/python

$ python --version
Python 2.7.15rc1

cd /usr/local/lib/ && ls -l
drwxrwsr-x 4 root staff 4096 apr 26 20:23 python2.7
drwxrwsr-x 3 root staff 4096 apr 26 20:18 python3.6
Run Code Online (Sandbox Code Playgroud)

python 18.04

5
推荐指数
2
解决办法
5万
查看次数

标签 统计

18.04 ×1

python ×1