“ ModulenotFoundError”,但我可以看到模块吗?

发布于 2025-02-11 16:57:32 字数 1283 浏览 1 评论 0原文

我一直在尝试安装和使用一个名为 makegraphitics 的库 ,modulenotfoundError:no模块名为“ read_lammpsdata”,每当我尝试执行使用makeGraphitics install的任何示例时:

“

我正在使用git bash,但何时有同样的问题试图将Windows子系统用于Linux(WSL)。我觉得我了解依赖性的工作方式。我之所以感到困惑,是因为“ read_lammpsdata”模块确实位于正确的目录中,即错误消息指示的目录:

”

我遵循makegraphitic的建议安装管道,

$ git clone github.com/velocirobbie/make-graphitics
$ cd make-graphitics
$ python setup.py install
$ pytest

然后完全遵循:然后

$ cd examples
$ python graphene_sheet.py

问:类似的问题: href =“ https://stackoverflow.com/questions/65458461/modulenotfounderror-but-module-module-is-is-installed”> there and 和在这里,但没有任何回答解决了我的问题。

I have been trying to install and use a library called MakeGraphitics, but keep getting the same error message, ModuleNotFoundError: No module named 'read_lammpsdata', whenever I try to execute any of the examples available with the MakeGraphitics install:

screenshot

I am using Git Bash, but had the same exact issue when trying to use the Windows Subsystem for Linux (WSL) instead. I feel like I understand how dependencies work. I am just confused because the "read_lammpsdata" module is indeed located in the correct directory, i.e., the directory indicated by the error message:

screenshot

I followed MakeGraphitic's suggested install pipeline exactly:

$ git clone github.com/velocirobbie/make-graphitics
$ cd make-graphitics
$ python setup.py install
$ pytest

And then:

$ cd examples
$ python graphene_sheet.py

Similar questions were asked here and here, but none of the responses solved my issue.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

迷雾森÷林ヴ 2025-02-18 16:57:32

我不完全了解问题是什么,但是我能够通过在Anaconda创建Python2.7环境来使事情有效,正如解释此处,然后遵循MakeGraphitics的建议安装步骤:

$ git clone github.com/velocirobbie/make-graphitics 
$ cd make-graphitics 
$ python setup.py install 
$ pytest

部分是我自己的错,因为MakeGraphitics显然建议使用Python2安装安装.7。

干杯!

I don't fully understand what the issue was, but I was able to get things working by creating a Python2.7 environment in Anaconda, as explained here, then following MakeGraphitics' suggested installation steps:

$ git clone github.com/velocirobbie/make-graphitics 
$ cd make-graphitics 
$ python setup.py install 
$ pytest

Partly my own fault, as MakeGraphitics clearly suggests to install using Python2.7.

Cheers!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文