“ ModulenotFoundError”,但我可以看到模块吗?
我一直在尝试安装和使用一个名为 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:
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:
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不完全了解问题是什么,但是我能够通过在Anaconda创建Python2.7环境来使事情有效,正如解释此处,然后遵循MakeGraphitics的建议安装步骤:
部分是我自己的错,因为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:
Partly my own fault, as MakeGraphitics clearly suggests to install using Python2.7.
Cheers!