gpt4 book ai didi

python - Jupyter笔记本-属性错误: 'module' object has no attribute 'F_OK'

转载 作者:太空宇宙 更新时间:2023-11-03 21:34:30 24 4
gpt4 key购买 nike

每当我输入命令“jupyter notebook”时,它都会给出上面列出的属性错误。我正在通过 Anaconda Prompt 运行它。

提示窗口中的内容:

(base) C:\Users\jj891w>jupyter notebook
Traceback (most recent call last):
File "C:\Users\jj891w\AppData\Local\Continuum\anaconda2\Scripts\jupyter-notebo
ok-script.py", line 10, in <module>
sys.exit(main())
File "C:\Users\jj891w\AppData\Local\Continuum\anaconda2\lib\site-packages\jupy
ter_core\application.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "C:\Users\jj891w\AppData\Local\Continuum\anaconda2\lib\site-packages\trai
tlets\config\application.py", line 657, in launch_instance
app.initialize(argv)
File "<decorator-gen-7>", line 2, in initialize
File "C:\Users\jj891w\AppData\Local\Continuum\anaconda2\lib\site-packages\trai
tlets\config\application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "C:\Users\jj891w\AppData\Local\Continuum\anaconda2\lib\site-packages\note
book\notebookapp.py", line 1630, in initialize
self.init_terminals()
File "C:\Users\jj891w\AppData\Local\Continuum\anaconda2\lib\site-packages\note
book\notebookapp.py", line 1459, in init_terminals
from .terminal import initialize
File "C:\Users\jj891w\AppData\Local\Continuum\anaconda2\lib\site-packages\note
book\terminal\__init__.py", line 3, in <module>
import terminado
File "C:\Users\jj891w\AppData\Local\Continuum\anaconda2\lib\site-packages\term
inado\__init__.py", line 8, in <module>
from .management import (TermManagerBase, SingleTermManager,
File "C:\Users\jj891w\AppData\Local\Continuum\anaconda2\lib\site-packages\term
inado\management.py", line 25, in <module>
from winpty import PtyProcess as PtyProcessUnicode
File "C:\Users\jj891w\AppData\Local\Continuum\anaconda2\lib\site-packages\winp
ty\__init__.py", line 11, in <module>
from .ptyprocess import PtyProcess
File "C:\Users\jj891w\AppData\Local\Continuum\anaconda2\lib\site-packages\winp
ty\ptyprocess.py", line 17, in <module>
from backports.shutil_which import which
File "C:\Users\jj891w\AppData\Local\Continuum\anaconda2\lib\site-packages\back
ports\shutil_which.py", line 12, in <module>
def backport_which(cmd, mode=os.F_OK | os.X_OK, path=None):
AttributeError: 'module' object has no attribute 'F_OK'

最佳答案

我也遇到了同样的问题。我通过降级 anaconda 和 Python 解决了这个问题。

conda install anaconda=5.2.0 python=3.6

关于python - Jupyter笔记本-属性错误: 'module' object has no attribute 'F_OK' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53323898/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com