python-3.x - 计算机重新启动后 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)
解决方案
推荐阅读
- mysql - 能否通过 DataGrip 中的 AWS Explorer 配置 AWS Aurora Serverless 集群?
- r - 如何在 R 中创建一个函数,该函数将采用一个区间或仅一个数字并返回该区间的最小值?
- powershell - 在输出报告中显示一次列标题
- java - 将 Google Drive API 与 scala play 项目一起使用
- node.js - 启用无头时找不到选择器 - Puppeteer
- node.js - 问题:Router.use 需要一个中间件函数,但有一个 obj
- arrays - 在结构中改变数组的最佳方法?
- python - jax中的高阶多元导数
- java - Spring Boot 中无法处理 FileSizeLimitExceededException
- arrays - 如何在 C 中获取动态数组的大小?