неправильное сообщение об ошибке

У меня есть ubuntu 16.04 на моем ноутбуке, вместе с python 2.7. в какой-то момент я изменил свой PYTHONPATH, чтобы он мог работать с tensorflow. однако, если я введу ls- в терминал, то ошибка, которую я получаю, это

Traceback (most recent call last): File "/usr/lib/command-not-found", line 23, in <module> import gettext File "/usr/lib/python3.5/gettext.py", line 49, in <module> import locale, copy, io, os, re, struct, sys File "/usr/lib/python3.5/locale.py", line 16, in <module> import re File "/usr/lib/python3.5/re.py", line 335, in <module> import copyreg File "/home/<username>/.local/lib/python2.7/site-packages/copyreg/__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. Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 53, in apport_excepthook if not enabled(): File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 24, in enabled import re File "/usr/lib/python3.5/re.py", line 335, in <module> import copyreg File "/home/<username>/.local/lib/python2.7/site-packages/copyreg/__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. Original exception was: Traceback (most recent call last): File "/usr/lib/command-not-found", line 23, in <module> import gettext File "/usr/lib/python3.5/gettext.py", line 49, in <module> import locale, copy, io, os, re, struct, sys File "/usr/lib/python3.5/locale.py", line 16, in <module> import re File "/usr/lib/python3.5/re.py", line 335, in <module> import copyreg File "/home/<username>/.local/lib/python2.7/site-packages/copyreg/__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.

, и она должна быть просто

bash: ls-: command not found

придирчивый человек, поэтому меня это несколько беспокоит. спасибо!

0
задан 3 August 2017 в 02:31

0 ответов

Другие вопросы по тегам:

Похожие вопросы: