经过大量的故障排除后,我最近有一个名为openbte(https://pypi.org/project/openbte/)的pip程序包可安装在PyCharm上。但是,当我尝试运行命令时,它给了我这个错误:
Traceback (most recent call last):
File "C:\Users\turtl\PycharmProjects\untitled\venv\Scripts\openbte-script.py", line 11, in <module>
load_entry_point('openbte==0.9.24', 'console_scripts', 'openbte')()
File "c:\users\turtl\pycharmprojects\untitled\venv\lib\site-packages\pkg_resources\__init__.py", line 487, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "c:\users\turtl\pycharmprojects\untitled\venv\lib\site-packages\pkg_resources\__init__.py", line 2728, in load_entry_point
return ep.load()
File "c:\users\turtl\pycharmprojects\untitled\venv\lib\site-packages\pkg_resources\__init__.py", line 2346, in load
return self.resolve()
File "c:\users\turtl\pycharmprojects\untitled\venv\lib\site-packages\pkg_resources\__init__.py", line 2352, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "c:\users\turtl\pycharmprojects\untitled\venv\lib\site-packages\openbte\__main__.py", line 3, in <module>
from .material import *
File "c:\users\turtl\pycharmprojects\untitled\venv\lib\site-packages\openbte\material.py", line 5, in <module>
from mpi4py import MPI
ImportError: DLL load failed: The specified module could not be found.
重点放在最后一行
导入错误:DLL加载失败:找不到指定的模块。
有人知道发生了什么吗?我查找了一些类似的问题,一些解决方案涉及设置环境变量或类似的东西(我现在正在尝试)。此外,openbte表示其编程语言是Python 2.7和Python 3.6。但是,我正在使用Python 3.7。这可能是个问题吗?