gpt4 book ai didi

python - 属性错误: type object 'Callable' has no attribute '_abc_registry'

转载 作者:行者123 更新时间:2023-12-02 01:39:00 27 4
gpt4 key购买 nike

当我打开 jupyter 笔记本时,出现错误。

我使用谷歌寻求帮助,但找不到答案。

我使用的是 macOS mojave 并使用 python 3.7.2。我重新安装了 Jupiter 笔记本,但没有任何变化。

当我输入jupyter笔记本时。它向我展示了这些

Last login: Wed Apr 24 23:06:17
miracleleon@MiracledeMBP  ~  jupyter notebook
Traceback (most recent call last):
File "/usr/local/bin/jupyter-notebook", line 6, in
from notebook.notebookapp import main
File "/usr/local/lib/python3.7/site-packages/notebook/init.py", line 25, in
from .nbextensions import install_nbextension
File "/usr/local/lib/python3.7/site-packages/notebook/nbextensions.py", line 610, in
from .extensions import (
File "/usr/local/lib/python3.7/site-packages/notebook/extensions.py", line 8, in
from tornado.log import LogFormatter
File "/usr/local/lib/python3.7/site-packages/tornado/log.py", line 34, in
from tornado.escape import _unicode
File "/usr/local/lib/python3.7/site-packages/tornado/escape.py", line 27, in
from tornado.util import unicode_type
File "/usr/local/lib/python3.7/site-packages/tornado/util.py", line 18, in
import typing
File "/usr/local/lib/python3.7/site-packages/typing.py", line 1356, in
class Callable(extra=collections_abc.Callable, metaclass=CallableMeta):
File "/usr/local/lib/python3.7/site-packages/typing.py", line 1004, in new
self._abc_registry = extra._abc_registry
AttributeError: type object 'Callable' has no attribute '_abc_registry'

最佳答案

尝试卸载输入:

pip uninstall typing

或将 python 降级到 3.6。 3.7输入好像有问题

如果之后你得到:

AttributeError: module 'typing' has no attribute '_ClassVar'

尝试pip卸载数据类

更多信息请参阅: https://github.com/RTIInternational/gobbli/issues/10

关于python - 属性错误: type object 'Callable' has no attribute '_abc_registry' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55833509/

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