Thanks for the help all the same, I've reinstalled the system and managed to install pip through the package manager with no errors, now i just have to reinstall all my tools :)
When i run apt-get reinstall python-pkg-resources i get the familiar error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 13 not upgraded.
6 not fully installed or removed.
Need to get...
Running apt-get reinstall python just gives me:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 13 not upgraded.
6 not fully installed or removed.
Need to get 22.9 kB/205 kB of...
Also, I don't know if this is of any use but i found that running python --version at some point executes the python file /usr/bin/python, which contains the following:
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ ==...
I've tried that but it didn't seem to make a difference to anything, The errors are still there when I try sudo apt-get upgrade and sudo gdebi python-pkg-resources_44.1.1-1_all.deb, and the python version is still pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
I followed the instructions and update-alternatives --config python even returned update-alternatives: using /usr/bin/python2.7 to provide /usr/bin/python (python) in manual mode, However, the python version is still pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8). Just in case i...
I reinstalled the python2-minimal package but the error still persists, and 3.8 is still my default python version. I didn't use pip3 to install pycompile or pyclean, I think i just might have copied them over to /usr/local/bin at some point during trying to fix these errors. I remember when i...
I moved the pycompile and pyclean files out of /usr/bin in order to create a symlink for both of them pointing to usr/local/bin. this however did not fix the issue and i was still getting the same errors. So after removing the symlinks i installed the dh-python package with sudo apt-get install...
running those commands i got
/usr/local/bin/pyclean
and
/usr/local/bin/pycompile
When I said I have checked they are in the /usr/bin I meant that when I ran /usr/bin$ ls | grep -i pyc both of the python files pycompile and pyclean were present.
I am running a kai linux 2020.1 64 bit VM. when I run sudo apt upgrade I get the following errors:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
php-common...