ERROR: Failed building wheel for grpcio

2021年10月13日

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

ERROR: Failed building wheel for grpcio

向上翻翻就可以发现

ERROR: Failed building wheel for grpcio

什么意思呢?

这个问题主要是网络上的教程过于老化,现在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博客

Original: https://blog.csdn.net/weixin_45935201/article/details/120694522
Author: 不舍昼夜adan
Title: ERROR: Failed building wheel for grpcio

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/509141/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球