由于某种原因,我的 Macbook bash 终端不允许我从提示符中输入“y”。我不太清楚如何描述这种情况,但您可以在下面看到操作。
$ sudo pip uninstall django
Password:
Uninstalling Django:
/Library/Frameworks/Python.framework/Versions/2.7/bin/django-admin.py
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Django-1.4.2-py2.7.egg-info
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django
Proceed (y/n)? **y^M^?^?^?^M^M^M^M^M^C**Your response ('y\r\x7f\x7f\x7f') was not one of the expected responses: y, n
Proceed (y/n)? y^M^C^D^M^M^M^M^CYour response ('y\r\x04') was not one of the expected responses: y, n
Proceed (y/n)? Y^M^Xc^C^D^CYour response ('y\r\x18c') was not one of the expected responses: y, n
Proceed (y/n)? ^D^CYour response ('') was not one of the expected responses: y, n
Proceed (y/n)? ^COperation cancelled by user
答案1
ctrl-J 起作用了,打开一个新的终端窗口也一样。