Python3 install ipython ~]# pip3 install ipythonĬreate soft link ln -sv /usr/local/python3/bin/ipython3 /usr/bin/ipython3īecause yum uses python2, it may not work properly after replacing it with python3, continue to use this python2.7.5 Pip 9.0.1from/usr/local/python3/lib/python3.6/site-packages(python 3.6) ~]# python3 -V Ln -sv /usr/local/python3/bin/pip3 /usr/bin/pip3 Python-3.6.4]# make & make installĬreate soft connection ln -sv /usr/local/python3/bin/python3 /usr/bin/python3 Object?-> Details about 'object', use 'object?'for extra details. IPython 5.8.0- An enhanced Interactive Python.?-> Introduction and overview of IPython's features.%quickref -> Quick reference. Type "copyright","credits" or "license"for more information. Installation is complete, check ipython ~]# ipython -V Report an error, install the corresponding package yum install python-devel libxslt-devel libffi-devel Install ipython corresponding to python 2.7 version, here use pip tool to install: ~]# pip install ipython If there is no pip tool under the original python2 version, you can install the pip tool under the Python2 version first: wget View centos7's own python version ~]# python -V So you can install python3 and python2 to coexist. If you use the latest Python3, then we know that there is no impact between compiling and installing the source code package and the system default package. This version is dependent on many programs of the system, so it is not recommended to delete it. The default system under CentOS7 comes with a version of python2.X.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |