我重新启动计算机,突然因为这个我不知道如何解决的错误而无法运行jupyter Notebook。
/anaconda2/bin/jupyter_mac.command ; exit;
-bash: dirname: command not found
-bash: dirname: command not found
-bash: dirname: command not found
-bash: dirname: command not found
EncodingError: A unicode encoding or decoding error has occurred.
Python 2 is the interpreter under which conda is running in your base environment.
Replacing your base environment with one having Python 3 may help resolve this issue.
If you still have a need for Python 2 environments, consider using 'conda create'
and 'conda activate'. For example:
$ conda create -n py2 python=2
$ conda activate py2
Error details: UnicodeDecodeError('utf8', '/bin:/condabin:/Users/ap/anaconda2/bin:/anaconda3/anaconda3/bin:/anaconda3/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:\xc2\xa8/usr/ap/Trolltech/Qt-4.7.3/bin:\xa8', 296, 297, 'invalid start byte')
dhcp-wlan:~ ap$ /anaconda2/bin/jupyter_mac.command ; exit;
/anaconda2/bin/jupyter_mac.command: line 1: dirname: command not found
/anaconda2/bin/jupyter_mac.command: line 3: /jupyter-notebook: No such file or directory
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
什么也没有打开...
我还尝试了$ conda激活py2,但是到目前为止还没用...