当我输入os.dup2(3,1)时,我只是尝试了os.dup2()函数来重定向输出,而我的ipython (2.7)似乎并不喜欢它。它崩溃了,现在它将不再启动,从而产生错误: File "/usr/bin/ipython", line 8, in <module> File "/usr/lib/python2.7
我通过/usr/local/opt/python/bin/python2.7 -m pip install jupyter安装了jupyter File "/Library/Python/2.7/site-packages/notebook/notebookapp.py", line 83, in <module>
from IPython.paths