edward icon indicating copy to clipboard operation
edward copied to clipboard

edward import error

Open cymqqqq opened this issue 5 years ago • 4 comments

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 avatar Jan 16 '20 00:01 cymqqqq

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

cymqqqq avatar Jan 16 '20 00:01 cymqqqq

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

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

hyeon424 avatar Mar 12 '20 07:03 hyeon424

@hyeon424 Link is dead

jtlz2 avatar Apr 08 '20 09:04 jtlz2

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

hyeon424 avatar Apr 08 '20 09:04 hyeon424