栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

ERROR: Failed building wheel for grpcio

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

ERROR: Failed building wheel for grpcio

2021年10月13日

你的报错界面和我一样的话,就看我的解决办法吧

向上翻翻就可以发现

 什么意思呢?

这个问题主要是网络上的教程过于老化,现在python3.5都放弃维护了,但是你还配置3.5的环境,肯定错呀!!!!

解决办法

1.退出建立的环境

deactivate

2.删除此环境

 conda remove -n tensorflow --all(加粗改成你的环境名,我设置的是tensorflow)

3.重新建立环境

conda create -n tensorflow1 python=3.8

4.安装tensorflow

pip install tensorflow

5.测试tensorflow(用我的测试吧,网上好多的教程的测试代码都已经老掉牙了,根本没办法用)

import tensorflow as tf
tf.compat.v1.disable_eager_execution() 
hello = tf.constant('hello,tensorflow')
sess= tf.compat.v1.Session()
print(sess.run(hello))

参考链接:可以看看这位大兄弟,他有反思(24条消息) RuntimeError: The Session graph is empty. Add operations to the graph before calling run().解决方法_爱学习的人工智障的博客-CSDN博客

 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/325692.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号