0
我已經從源代碼安裝了Python3.5的fedora
。現在我可以使用python3.5
,只需在cmd行輸入python3.5
或python3
,當我不在根模式下。它也適用於我使用pip3.5
。但是,當我登錄爲root
時,它將python3
鏈接到舊的3.4版本,並且cmd行不識別pip3.5
。在bash線是這樣的:[塞凱@ seke3〜] $ python3在root模式下不能使用pip3.5
不是root:
Python 3.5.2 (default, Feb 20 2017, 22:05:41)
[GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
[[email protected] ~]$ pip3.5 -V
pip 8.1.1 from /usr/local/lib/python3.5/site-packages (python 3.5)
根:
[[email protected] seke]# python3
Python 3.4.2 (default, Jun 20 2016, 14:25:19)
[GCC 5.3.1 20160406 (Red Hat 5.3.1-6)] on linux
Type "help", "copyright", "credits" or "license" for more information.
[[email protected] seke]# pip3.5
bash: pip3.5: command not find...
但是我應該在哪裏安裝它,以及如何安裝? – Zhao