blei-lab / edward

A probabilistic programming language in TensorFlow. Deep generative models, variational inference.
http://edwardlib.org
Other
4.83k stars 760 forks source link

edward import error #943

Open cymqqqq opened 4 years ago

cymqqqq commented 4 years ago

when I import edward: File "", line 1, in File "F:\edward\edward__init.py", line 5, in from edward import criticisms File "F:\edward\edward\criticisms\init.py", line 7, in from edward.criticisms.evaluate import * File "F:\edward\edward\criticisms\evaluate.py", line 10, in from edward.util import check_data, get_session, compute_multinomial_mode, \ File "F:\edward\edward\util\init__.py", line 10, in from edward.util.random_variables import * File "F:\edward\edward\util\random_variables.py", line 15, in from tensorflow.python.framework.ops import set_shapes_for_outputs ImportError: cannot import name 'set_shapes_for_outputs' from 'tensorflow.python.framework.ops' (E:\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py)

cymqqqq commented 4 years ago

I know the newest version is incompatible with the tf2.0. but how to solve this question?

hyeon424 commented 4 years ago

You need to check this page. Check the version of each library you need.

https://github.com/blei-lab/edward/blob/master/setup.py

jtlz2 commented 4 years ago

@hyeon424 Link is dead

hyeon424 commented 4 years ago

@jtlz2 Check setup.py on this page https://github.com/blei-lab/edward