명령을 실행할 때 Python3 오류 메시지가 존재하지 않습니다.

명령을 실행할 때 Python3 오류 메시지가 존재하지 않습니다.

나는 mu gnuradio를 업그레이드해야 했고 따라서 소스에서 빌드해야 했습니다(pybombs는 작동하지 않았습니다). 빌드 후에 존재하지 않는 터미널에 명령을 작성할 때마다 이러한 오류 메시지가 나타납니다. 존재하는 명령은 오류 메시지를 표시하지 않습니다.

python3은 명령이지만 python3을 시작하고 동일한 오류 메시지가 표시될 수 없습니다(python을 입력한 다음 터미널에서 탭을 누르면 표시됨).

내 생각에는 경로가 뭔가 잘못된 것 같은데 찾을 수 없었습니다.

:~$ 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.

관련 정보