启动Jupyter Notebook时出错-@ attr.s(hash = True)AttributeError:模块'attr'没有属性's' [英] Error while launching Jupyter Notebook - @attr.s(hash=True) AttributeError: module 'attr' has no attribute 's'

查看:357
本文介绍了启动Jupyter Notebook时出错-@ attr.s(hash = True)AttributeError:模块'attr'没有属性's'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法启动或打开Jupyter Notebook.我已经多次卸载并安装了它,但仍然收到与我粘贴在下面的错误相同的错误!

I am not able to launch or open Jupyter Notebook. I have uninstalled and installed it multiple times, still get the same error which I have pasted below!

出现一些属性错误".

Traceback (most recent call last):
File "C:\Users\Ramya\anaconda3\Scripts\jupyter-notebook-script.py", line 6, in 
from notebook.notebookapp import main
File "C:\Users\Ramya\anaconda3\lib\site-packages\notebook\notebookapp.py", line 80, in 
from .services.contents.manager import ContentsManager
File "C:\Users\Ramya\anaconda3\lib\site-packages\notebook\services\contents\manager.py", line 17, in 
from nbformat import sign, validate as validate_nb, ValidationError
File "C:\Users\Ramya\anaconda3\lib\site-packages\nbformat\__init__.py", line 32, in 
from .validator import validate, ValidationError
File "C:\Users\Ramya\anaconda3\lib\site-packages\nbformat\validator.py", line 12, in 
from jsonschema import ValidationError
File "C:\Users\Ramya\anaconda3\lib\site-packages\jsonschema\__init__.py", line 11, in 
from jsonschema.exceptions import (
File "C:\Users\Ramya\anaconda3\lib\site-packages\jsonschema\exceptions.py", line 152, in 
@attr.s(hash=True)
AttributeError: module 'attr' has no attribute 's'

请帮助!

推荐答案

  1. 在计算机上搜索名为"attr.py"的文件
  2. 删除该文件
  3. 重新打开Jupiter笔记本或重新下载 这可以在我的计算机上运行,​​我尝试过"pip卸载attr",但是它不起作用,我想我们应该手动进行操作.
  1. Search the file named 'attr.py' on your computer
  2. Delete that file
  3. Reopen Jupiter notebook or redownload it This works on my computer, I have tried' pip uninstall attr' and it does not work, I guess we should do it by hand.

这篇关于启动Jupyter Notebook时出错-@ attr.s(hash = True)AttributeError:模块'attr'没有属性's'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆