首页 > 解决方案 > 计算机重新启动后 Jupyter 笔记本未运行(来自 Miniconda 命令提示符)

问题描述

我正在尝试从 Miniconda 提示符启动 Jupyter Notebook(由于某些问题,无法在我的计算机上使用 Anaconda,尝试了 10 次,所以请不要建议安装 anaconda)。它工作正常,但重新启动我的电脑后,我开始收到错误。我安装了软件包,但现在我收到以下错误,模块fcntl也无法下载。有人可以帮我我所缺少的吗?

以下是我得到的错误

> (base) jupyter notebook
>
> Traceback (most recent call last):   File
> "C:\Users\shan_jaffry\Miniconda3\lib\site-packages\terminado\management.py",
> line 20, in <module>
>     from ptyprocess import PtyProcessUnicode   File "C:\Users\shan_jaffry\Miniconda3\lib\site-packages\ptyprocess\__init__.py",
> line 2, in <module>
>     from .ptyprocess import PtyProcess, PtyProcessUnicode, PtyProcessError   File
> "C:\Users\shan_jaffry\Miniconda3\lib\site-packages\ptyprocess\ptyprocess.py",
> line 3, in <module>
>     import fcntl ModuleNotFoundError: No module named 'fcntl'
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):   File
> "C:\Users\shan_jaffry\Miniconda3\Scripts\jupyter-notebook-script.py",
> line 5, in <module>
>     from notebook.notebookapp import main   File "C:\Users\shan_jaffry\Miniconda3\lib\site-packages\notebook\notebookapp.py",
> line 132, in <module>
>     from .terminal import TerminalManager   File "C:\Users\shan_jaffry\Miniconda3\lib\site-packages\notebook\terminal\__init__.py",
> line 4, in <module>
>     import terminado   File "C:\Users\shan_jaffry\Miniconda3\lib\site-packages\terminado\__init__.py",
> line 8, in <module>
>     from .management import (TermManagerBase, SingleTermManager,   File
> "C:\Users\shan_jaffry\Miniconda3\lib\site-packages\terminado\management.py",
> line 24, in <module>
>     from winpty import PtyProcess as PtyProcessUnicode   File "C:\Users\shan_jaffry\Miniconda3\lib\site-packages\winpty\__init__.py",
> line 12, in <module>   File "<frozen importlib._bootstrap>", line
> 1007, in _find_and_load   File "<frozen importlib._bootstrap>", line
> 986, in _find_and_load_unlocked   File "<frozen
> importlib._bootstrap>", line 680, in _load_unlocked   File "<frozen
> importlib._bootstrap_external>", line 851, in exec_module   File
> "<frozen importlib._bootstrap_external>", line 983, in get_code   File
> "<frozen importlib._bootstrap_external>", line 647, in
> _compile_bytecode ValueError: bad marshal data (unknown type code)

标签: python-3.xjupyter-notebookpackagecondaminiconda

解决方案


推荐阅读