Tried -
sudo apt update
sudo apt-get install python3-setuptoolsgiving error -
E: Package 'python3-setuptools' has no installation candidateTried -
sudo apt update
sudo apt install python3-pipgiving error -
E: Package 'python3-pip' has no installation candidateWhen checked for universal repository -
sudo add-apt-repository universe
'universe' distribution component is already enabled for all sources.For any other command too, giving error as python3-packagename has no installation candidate.
I checked the version of python, it is 3.8.2 . I installed 3.9 now and how to make it default. I want to try it so that whether it may works.
21 Answer
Run
sudo nano /etc/apt/sources.listAnd add these lines.
deb bionic main universe
deb bionic-security main universe
deb bionic-updates main universePress Ctrl+O to save the file. Press Ctrl+X to quit nano.
Then run:
sudo apt update
sudo apt install python3-pipThis works.
I also works with
apt update
apt upgrade 3