My Linux machine got clogged over the time with various versions of various applications. One of them is python 2.7 and python 3 in the same time. It simply complicates the things, so I decided to remove python 2.7. I found that a safe way was:
# Remove first python2.7
sudo apt purge -y python2.7-minimal
# Since I already have python3, I want it as regular python
sudo ln -s /usr/bin/python3 /usr/bin/python
# Similar for pip
sudo apt install -y python3-pip
sudo ln -s /usr/bin/pip3 /usr/bin/pip
# This command confirms that python is python 3
python --version
Niciun comentariu:
Trimiteți un comentariu