【发布时间】:2018-06-24 05:36:15
【问题描述】:
我已经安装了 Python 3.6.5,但是当我输入 Python 时,它显示 Python 2.7.5。 我想使用 Python 3。
[aravind@aravind05 Python-3.6.5]$ python3 --version
Python 3.6.5
[aravind@aravind05 Python-3.6.5]$ python
Python 2.7.5 (default, Apr 11 2018, 07:36:10)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
我想使用 Python 3
【问题讨论】:
-
可以选择卸载 Python 2.7.5 吗?
-
不要改变它!将
python设置为 Python 3 可能会破坏您的系统工具。请改用python3或虚拟环境。
标签: python python-3.x