AttributeError:类型对象"Callable"没有属性"

编程入门 行业动态 更新时间:2024-10-25 19:30:28
本文介绍了AttributeError:类型对象"Callable"没有属性"_abc_registry"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

打开jupyter笔记本时出现错误.

When I open my jupyter notebook I get errors.

我使用google寻求帮助,但找不到答案.

I use google for help, but I can't find an answer.

我正在使用macOS mojave并使用python 3.7.2.我重新安装了Jupiter笔记本,但没有任何更改.

I'm on macOS mojave and using python 3.7.2.I reinstalled my Jupiter notebook but no change.

当我输入jupyter笔记本时.给我看这些

When I input jupyter notebook. It show me these

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似乎有问题

or downgrading python to 3.6. There seems to be a problem with typing in 3.7

如果之后您得到:

AttributeError:模块'typing'没有属性'_ClassVar'

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

尝试pip uninstall dataclasses.

有关更多信息,请参阅: github/RTIInternational/gobbli/issues/10

For more info refer to: github/RTIInternational/gobbli/issues/10

更多推荐

AttributeError:类型对象"Callable"没有属性"

本文发布于:2023-10-22 08:17:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1516966.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:属性   对象   类型   AttributeError   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!