Giter VIP home page Giter VIP logo

Comments (5)

SRL94 avatar SRL94 commented on May 26, 2024

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

from graphgan.

shuo-git avatar shuo-git commented on May 26, 2024

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

from graphgan.

Diamond0728 avatar Diamond0728 commented on May 26, 2024

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

It works , thanks

from graphgan.

SherylHYX avatar SherylHYX commented on May 26, 2024

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'

from graphgan.

liuhuofighting avatar liuhuofighting commented on May 26, 2024

I use ubuntu20.04
import sys
sys.path.append("src所在的目录") #可以在src目录下使用pwd查看
import utils
from evaluation import link_prediction as lp
import discriminator #源代码缺少这个的引用

from graphgan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.