安装mpi4py时如何修复“没有名为Mpi4py的模块”

时间:2019-05-29 07:44:38

标签: openmpi

所以我安装了openmpimpi4py库(我确保安装了python3版本,因为这给了我一个错误),我仍然找不到mpi4py库python程序。

我尝试使用pip3重新安装它,但没有成功,其他问题似乎也没有帮助。

import mpi4py

这是错误:

Input xml: /home/robotics/spinningup/half_cheetah_variable.xml
Output xml: /home/robotics/gym/gym/envs/mujoco/assets/half_cheetah.xml
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 183, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/usr/lib/python3.6/runpy.py", line 109, in _get_module_details
    __import__(pkg_name)
  File "/home/robotics/spinningup/spinup/__init__.py", line 2, in <module>
    from spinup.algos.ddpg.ddpg import ddpg
  File "/home/robotics/spinningup/spinup/algos/ddpg/ddpg.py", line 7, in <module>
    from spinup.utils.logx import EpochLogger
  File "/home/robotics/spinningup/spinup/utils/logx.py", line 14, in <module>
    from spinup.utils.mpi_tools import proc_id, mpi_statistics_scalar
  File "/home/robotics/spinningup/spinup/utils/mpi_tools.py", line 1, in <module>
    from mpi4py import MPI

0 个答案:

没有答案