python upgrade version 2.7 to 3.7

https://www.jianshu.com/p/8c8972289196
more important it is to install a library,
after the installation of the system will encounter problems, such as yum is no way to run a solution is to
[root @ localhost bin] # head -n 4 yum

! /Usr/bin/python2.7 first line would read PYTHON2.7 file location, or can not find PYTHON

import sys
try:
import yum

There is also a problem, because as one would with a python editor Ipython in centeros inside, but after the installation or version 2.7, also need to change the path,
[root @ localhost bin] # 4 head -n / usr / bin / ipython

! / Usr / local / bin / python3 that this is the path Python3

This script was automatically generated by setup.py

if name == 'main':
from IPython import start_ipython

After completion there will still be a problem, that there is no model Ipython solution is pip3 install -i https://pypi.doubanio.com/simple Ipython

Guess you like

Origin www.cnblogs.com/xupanfeng/p/12241038.html