Linux 공통 Raspbian Ubuntu

remove python2

1. Intro

Delete python 2 (Default installed)

 

2. Command

# check python2 version
python --version

# Delete python2
sudo apt purge python2.x-minimal

# Install pip3
sudo apt install python3-pip

# link python2 -> python3
sudo ln -s /usr/bin/python3 /usr/bin/python
sudo ln -s /usr/bin/pip3 /usr/bin/pip

# check python version
python --version

 

 

Back To Top