[英]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.