(base) [ec2-user@ip- src]$ python -m openne --model gcn --dataset cora
Traceback (most recent call last):
File "/home/ec2-user/anaconda/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/ec2-user/anaconda/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/ec2-user/workspace/OpenNE/src/openne/__main__.py", line 11, in <module>
from .gcn import gcnAPI
File "/home/ec2-user/workspace/OpenNE/src/openne/gcn/gcnAPI.py", line 3, in <module>
from . import models
File "/home/ec2-user/workspace/OpenNE/src/openne/gcn/models.py", line 1, in <module>
from .layers import *
File "/home/ec2-user/workspace/OpenNE/src/openne/gcn/layers.py", line 4, in <module>
flags = tf.app.flags
AttributeError: module 'tensorflow' has no attribute 'app'
(base) [ec2-user@ip- src]$
train.py里含有
tensorflow