• tensorflow 装好后运行 samples里面的例子
python3 premade_estimator.py
  • 报错:AttributeError: module 'tensorflow' has no attribute 'keras'
pip3 install keras
  • 装keras 还是出现上述问题。
  • 更新tensorflow:
conda update tensorflow

导入tensorflow报错: illlegal instruction, 然后python界面直接退出了。

难道是版本不对,按照下面这个网址做试试看!

pip3 uninstall tensorflow
pip3 install -Iv tensorflow==1.5
我是直接输入:pip3 install tensorflow==1.5
导入没问题了。

运行官网给的例子

python premade_estimator.py

 

  • 如果报错说缺啥module就重新装一下就行,即使用pip list 看了存在,还有可能是缺少一些依赖modules。

 

Logo

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。

更多推荐