Mensaje de error de Python3 cuando el comando en ejecución no existe

Mensaje de error de Python3 cuando el comando en ejecución no existe

Tuve que actualizar mu gnuradio y, por lo tanto, tuve que compilarlo desde la fuente (pybombs no funcionó). Después de la compilación, recibo estos mensajes de error cada vez que escribo un comando en la terminal que no existe. Los comandos que existen no dan ningún mensaje de error.

Tampoco puedo iniciar python3 y aparece el mismo mensaje de error, aunque python3 es un comando (aparece cuando escribo python y luego presiono tab en la terminal).

Mi pensamiento es que el camino es de alguna manera incorrecto pero no he podido localizarlo.

:~$ not a command
Error processing line 1 of /home/erik/.local/lib/python3.5/site-packages/protobuf-3.8.0-py3.5-nspkg.pth:

Failed to import the site module
Traceback (most recent call last):
  File "/usr/lib/python3.5/site.py", line 173, in addpackage
    exec(line)
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.5/types.py", line 166, in <module>
    import functools as _functools
  File "/usr/lib/python3.5/functools.py", line 21, in <module>
    from collections import namedtuple
  File "/usr/lib/python3.5/collections/__init__.py", line 32, in <module>
    from reprlib import recursive_repr as _recursive_repr
  File "/usr/local/lib/python2.7/dist-packages/reprlib/__init__.py", line 7, in <module>
    raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.5/site.py", line 580, in <module>
    main()
  File "/usr/lib/python3.5/site.py", line 566, in main
    known_paths = addusersitepackages(known_paths)
  File "/usr/lib/python3.5/site.py", line 290, in addusersitepackages
    addsitedir(user_site, known_paths)
  File "/usr/lib/python3.5/site.py", line 212, in addsitedir
    addpackage(sitedir, name, known_paths)
  File "/usr/lib/python3.5/site.py", line 183, in addpackage
    import traceback
  File "/usr/lib/python3.5/traceback.py", line 3, in <module>
    import collections
  File "/usr/lib/python3.5/collections/__init__.py", line 32, in <module>
    from reprlib import recursive_repr as _recursive_repr
  File "/usr/local/lib/python2.7/dist-packages/reprlib/__init__.py", line 7, in <module>
    raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.

información relacionada