在Ubuntu 16.04.3 LTS
,如何卸载nosetests
? apt 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