我使用運行Linux CentOS的一臺筆記本電腦7 我安裝了Python2.7,然後我安裝了蟒蛇,裏面裝Python3.5.2Linux CentOS 7,如何將Python2.7設置爲默認Python版本?
我想我的系統使用Python2.7爲默認值,但如果我從我的終端上鍵入python
,它啓動Python3.5.2從蟒:
[[email protected] ~]$ python
Python 3.5.2 |Anaconda custom (64-bit)| (default, Jul 2 2016, 17:53:06)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
我試圖刪除Python3,但它仍然存在...
我如何可以設置Python2.7作爲默認的Python版本我的機器?
感謝
這看起來像CentOS6而不是CentOS7,因爲GCC是4.4.7。你可否確認? –
@MattSchuchard它的CentOS Linux版本7.3.1611(核心) –