J'ai installé Python3.5 à partir de la source pour fedora
. Maintenant, je peux utiliser python3.5
en tapant simplement python3.5
ou python3
dans la ligne cmd lorsque je ne suis pas en mode root. Cela fonctionne également quand j'utilise pip3.5
. Toutefois, lorsque je me connecte en tant que root
, il lie python3
à l'ancienne version 3.4 et la ligne cmd ne reconnaît pas pip3.5
. La ligne bash est comme ceci: [Seke @ seke3 ~] $ python3Impossible d'utiliser pip3.5 en mode racine
Non racine:
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)
Racine:
[[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...
mais où dois-je installer et comment? – Zhao