jupyter中tensorflow内核报错---AttributeError: module ‘mistune‘ has no attribute ‘BlockGrammar‘

  1. AttributeError: module ‘mistune’ has no attribute ‘BlockGrammar’
conda install -c conda-forge 'nbconvert>=7' 'mistune>=2`
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
引用:AttributeError: module 'tensorflow.compat.v1' has no attribute 'contrib'的问题通常是由于使用的tensorflow版本较新导致的。在较新的tensorflow版本,contrib模块被移除了。为了解决这个问题,你可以按照以下步骤进行操作。 1. 首先,确保你已经安装了tensorflow。你可以使用命令`pip list`来检查已安装的包列表是否包含tensorflow。 2. 如果你已经安装了tensorflow,但仍然遇到该误,请激活你的tensorflow环境。你可以使用命令`activate <你的环境>`来激活你的tensorflow环境。 3. 进入python交互环境,运行`python`命令。 4. 如果在python交互环境下成功执行了下面的步骤,那么你可以继续进行下一步。否则,请尝试重新安装tensorflow。 5. 当你在jupyter notebook运行时,确保你切换到正确的内核,即切换到你安装tensorflow的环境。 通过以上步骤,你应该能够成功解决`AttributeError: module 'tensorflow.compat.v1' has no attribute 'contrib'`的问题。如果问题仍然存在,请尝试使用合适版本的tensorflow或者查找其他解决方案。引用<span class="em">1</span><span class="em">2</span> #### 引用[.reference_title] - *1* [AttributeError: module 'tensorflow.compat.v1' has no attribute '](https://download.csdn.net/download/qq_38766019/86272235)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [AttributeError: module ‘tensorflow.keras‘ has no attribute ‘datasets](https://blog.csdn.net/im_joy/article/details/124679075)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值