简体   繁体   English

不能将Edward 1.3.5与Tensorflow 1.14.0一起使用

[英]Can not use Edward 1.3.5 with Tensorflow 1.14.0

I am trying to use Edward library for deploying a PPCA model and facing difficulties while installing it on windows. 我正在尝试使用Edward库来部署PPCA模型,并在Windows上安装它时遇到困难。 I successfully installed Edward 1.3.5 using (pip install edward ) and tensorflow 1.14.0 using (pip install tensorflow) but when I try to import edward in jupyter notebook , I get the following error 我使用(pip install edward)成功安装了Edward 1.3.5,使用(pip install tensorflow)成功安装了tensorflow 1.14.0,但是当我尝试在jupyter笔记本中导入edward时,出现以下错误

cannot import name 'set_shapes_for_outputs' from 'tensorflow.python.framework.ops 无法从'tensorflow.python.framework.ops导入名称'set_shapes_for_outputs'

I tried looking into issues opened here ( https://github.com/blei-lab/edward/issues/882 ) and here ( https://github.com/blei-lab/edward/issues/893 ) but nothing worked. 我试图调查在这里( https://github.com/blei-lab/edward/issues/882 )和在这里( https://github.com/blei-lab/edward/issues/893 )打开的问题,但是没有任何效果。

If anyone has any recommendations and/or suggestions, that would be great! 如果有人有任何建议和/或建议,那就太好了!

Many thanks! 非常感谢!

我要解决的所有问题是,我创建了一个新的conda环境,将python降级到3.6.5(低于3.7.0的版本都可以正常工作),并将TensorFlow降级到1.3.0版(低于1.6.0的版本都可以正常工作) 。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何通过 tensorflow 1.14.0 有效地使用 OpenMP 并行性 - How to use OpenMP parallelism effectively with tensorflow 1.14.0 无法使用 pip 安装 Tensorflow 1.14.0(错误:未找到 tensorflow==1.14.0 的匹配分布) - Can't Install Tensorflow 1.14.0 using pip (ERROR: No matching distribution found for tensorflow==1.14.0) 如何在 python package 中使用 tensorflow 1.14.0 并在 Z3254677A7917C6CFFB01 中运行它? - How do I use tensorflow 1.14.0 in a python package and run it in Dockerfile? TensorFlow 1.14.0 未使用 GPU - TensorFlow 1.14.0 is not using GPU Tensorflow 1.14.0 导入模块时出错 - Tensorflow 1.14.0 error in importing the module 如何在 Pycharm 上下载 tensorflow 1.14.0? - How to download tensorflow 1.14.0 on Pycharm? Tensorflow 安装卡在“收集 tensorboard&lt;1.14.0,&gt;=1.13.0(来自 tensorflow)” - Tensorflow installation stuck at "Collecting tensorboard<1.14.0,>=1.13.0 (from tensorflow)" pip3 install tensorflow-gpu 安装 tensorflow 版本 1.14.0 - pip3 install tensorflow-gpu installs tensorflow version 1.14.0 将 Tensorflow Keras model 移植到 Tensorflow 版本时出错。 - Error porting Tensorflow Keras model to Tensorflow Version 1.14.0 带有 TensorFlow Probability 的 Edward2 的简单哈密顿蒙特卡罗示例 - Simple Hamiltonian Monte Carlo Example with TensorFlow Probability's Edward2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM