linux+ubuntu solve python

[ Requirements: upgrade python3 and use] (requirements: upgrade python3 and use)

wget https://www.python.org/ftp/python/3.6.7/Python-3.6.7.tgz

tar -zxvf Python-3.6.7.tgz

cd Python-3.6.7/ ./configure prefix=/usr/local/python36 make && make instal

which python3
Result: /usr/bin/python3

mv /usr/bin/python3 /usr/bin/python3.bak

ln -s /usr/local/python36/bin/python3 /usr/local/bin/

ln -s /usr/local/python36/bin/pip /usr/local/bin/pip3
Execute pip3 -V and you can see that it points to python3, success!

…end…

Recommended Posts

linux+ubuntu solve python
Python| function using recursion to solve
How to solve python dict garbled
Python multithreading
Python CookBook
Python3 dictionary
Python3 module
python (you-get)
Python string
Python basics
Solve the conflict of multiple versions of python
Python descriptor
Python basics 2
Python exec
Python notes
Python3 tuple
CentOS + Python3.6+
Python advanced (1)
Python decorator
Python IO
Python multithreading
Python toolchain
Python3 list
Python multitasking-coroutine
Python overview
python introduction
Python analytic
Python basics
07. Python3 functions
Python basics 3
Python multitasking-threads
Python functions
python sys.stdout
python operator
Python entry-3
Centos 7.5 python3.6
Python string
python queue Queue
Python basics 4
Python basics 5
Solve the conflict of multiple versions of python
Solve the problem of python running startup error