GraphGAN icon indicating copy to clipboard operation
GraphGAN copied to clipboard

No module named src

Open hannlp opened this issue 5 years ago • 5 comments

为什么我运行时会报这个错误呢? Traceback (most recent call last): File "graph_gan.py", line 11, in from src import utils ModuleNotFoundError: No module named 'src'

hannlp avatar May 03 '19 16:05 hannlp

@1140325971 I solve this issue by running it in Pycharm.

SRL94 avatar May 28 '19 01:05 SRL94

export PYTHONPATH=<The path of GraphGAN>:$PYTHONPATH Adding your code dir to PYTHONPATH may help

shuo-git avatar Jun 09 '19 07:06 shuo-git

@1140325971 I solve this issue by running it in Pycharm.

It works , thanks

Diamond0728 avatar Oct 09 '19 02:10 Diamond0728

You can add these two lines at the beginning of graph_gan.py(可以考虑在graph_gan.py前面加上两行): import sys sys.append.path("../../")

为什么我运行时会报这个错误呢? Traceback (most recent call last): File "graph_gan.py", line 11, in from src import utils ModuleNotFoundError: No module named 'src'

SherylHYX avatar Jan 19 '21 10:01 SherylHYX