0

我想为 pymatgen 包做出贡献。我按照此处提供的说明进行操作: https ://pymatgen.org/installation.html#step-2-install-pymatgen-in-developmental-mode

一切都很顺利。如果我在克隆存储库的目录中打开一个交互式 python3 shell,我可以例如运行

>>> from pymatgen.core.operations import SymmOp

并且没有投诉。我想首先运行一些保存在./pymatgen/core/tests/. 但是,如果我运行例如

python3 ./pymatgen/core/tests/test_operations.py

我收到以下 ImportError:

Traceback (most recent call last):
  File "./pymatgen/core/tests/test_operations.py", line 7, in <module>
    from pymatgen.core.operations import MagSymmOp, SymmOp
ModuleNotFoundError: No module named 'pymatgen'

为了运行这些测试,我需要做什么?

4

0 回答 0