Giter Site home page Giter Site logo

Comments (1)

github-luffy avatar github-luffy commented on June 3, 2024

ModuleNotFoundError: No module named 'model2'

"ModuleNotFoundError: No module named "问题分析和解决思路
这个问题比较常见,根据经验主要分为两种:
情况1:"
"这个package是否在真的存在,pycharm做远程deployment时候,用户经常会在远程服务器漏掉某些文件和目录,导致目录不存在。
解决办法:直接upload本地目录和文件到服务器就行了

情况2:"****"这个package是存在的,这时问题继续分为2种情况
情况2.1:使用pycharm,右击指定包目录"Make Directory as"设置为"Source root",pycharm在运行时候会自动加载该package包到sys.path中
情况2.2:在命令行模式(不使用pycharm)下运行,则在当前py文件的最前面部分手动添加sys.path.append("****所在包目录")

from pfld_68points_pytorch.

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.