问题描述
我已安装Open MPI来并行化Python脚本,但出现导入错误:
user@pc:~$ mpirun -n 4 python /home/user/Desktop/some_script.py
Traceback (most recent call last):
File "/home/user/Desktop/some_script.py",line 10,in <module>
import matplotlib.pyplot as plt
ImportError: No module named matplotlib.pyplot
--------------------------------------------------------------------------
Primary job terminated normally,but 1 process returned
a non-zero exit code. Per user-direction,the job has been aborted.
--------------------------------------------------------------------------
Traceback (most recent call last):
File "/home/user/Desktop/some_script.py",in <module>
import matplotlib.pyplot as plt
ImportError: No module named matplotlib.pyplot
--------------------------------------------------------------------------
mpirun detected that one or more processes exited with non-zero status,thus causing
the job to be terminated. The first process to do so was:
Process name: [[32294,1],0]
Exit code: 1
--------------------------------------------------------------------------
我已经安装了所有必需的软件包,实际上,我已经从Jupyter Notebook成功运行了脚本。这是什么问题?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)