如何卸载nosetests?

时间:2017-09-05 15:58:59

标签: python ubuntu nose

Ubuntu 16.04.3 LTS,如何卸载nosetestsapt remove xxx pip uninstall xxx不适用于xxx={nose, nosetests}

我认为我有一个损坏的nosetest安装,因为:

>nosetests
Traceback (most recent call last):
  File "/usr/lib/command-not-found", line 23, in <module>
    import gettext
  File "/usr/lib/python2.7/gettext.py", line 91
    raise ValueError, \
                    ^
SyntaxError: invalid syntax
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
    from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in <module>
    import subprocess, tempfile, os.path, re, pwd, grp, os, time
  File "/usr/lib/python2.7/subprocess.py", line 725
    raise exc_type, exc_value, exc_trace
                  ^
SyntaxError: invalid syntax

Original exception was:
Traceback (most recent call last):
  File "/usr/lib/command-not-found", line 23, in <module>
    import gettext
  File "/usr/lib/python2.7/gettext.py", line 91
    raise ValueError, \
                    ^
SyntaxError: invalid syntax

0 个答案:

没有答案