win10启动Jupyter notebook时报错FileNotFoundError: [Errno 2] No such file or directory: 'nul'解决方案

第一次写博客,估计会很乱!!

File "c:\programdata\anaconda3\lib\site-packages\IPython\utils\io.py", line 88, in <module>
devnull = open(os.devnull, 'w')
FileNotFoundError: [Errno 2] No such file or directory: 'nul'

问题:正常安装jupyter后输入命令:jupyter notebook后无法启动。

解决:按照报错的路径将文件中

devnull = open(os.devnull, 'w')
改为

devnull = open('null', 'w')
就能正常启动了。

PS:

    不知道会有什么其它影响。

    参考:https://blog.csdn.net/xyh421/article/details/79504350
---------------------
作者:不吃茄子啦
来源:CSDN
原文:https://blog.csdn.net/carroll_/article/details/79698316
版权声明:本文为博主原创文章,转载请附上博文链接!

posted @ 2019-07-15 11:36  苍月代表我  阅读(4146)  评论(0编辑  收藏  举报