I just updated from 16.04 to 17.10, and every time I attempt to run any python2.7 command, I'm getting this error:
pip install --upgrade pip Traceback (most recent call last): File "/home/XXXX/bin/pip", line 7, in <module> from pip import main File "/home/XXXX/local/lib/python2.7/site-packages/pip/__init__.py", line 5, in <module> import logging File "/usr/lib/python2.7/logging/__init__.py", line 26, in <module> import sys, os, time, cStringIO, traceback, warnings, weakref, collections File "/home/XXXX/lib/python2.7/weakref.py", line 14, in <module> from _weakref import ( ImportError: cannot import name _remove_dead_weakref
Another user had a similar problem, but this affects any python program I attempt to execute. I can't install anything via pip, or use any python scripts. I really have no idea what to do, assistance would be greatly appreciated.
Output of "python --version" is
however "update python" produces:
python is already the newest version (2.7.14-2ubuntu1).