How to uninstall/update/ your python in Linux

来源:互联网 发布:手机淘宝手机官方版 编辑:程序博客网 时间:2024/05/06 15:19

If you want to uninstall your python,input:

sudo apt-get remove python

if you want to install python3:

sudo apt-get install python3

but it just installs the python3.4,so if you want to update it to3.5:

sudo apt-get update && sudo apt-get install python3.5

if you want to check your python version:

python -Vpython3 -V

if you want to check the path installed:

which pythonwhich python3