安装mpi4py报错:Building wheel for mpi4py (setup.py) … error message while installing stable_baselines
直接使用命令: pip install mpi4py==2.0.0 报错 Building wheel for mpi4py (setup.py) … error message while installing stable_baselines 原因: 没有安装MPI实现软件,比较常用的MPI实现软件有Openmpi,mpich等 解决过程: 1.安装Openmpi a. 下载安装包: wget https://www.open-mpi.org/software/ompi/v1.10/downloads/openmpi-1.10.2.tar.gz b. 将文件移动到主页,右击选择“提取到此处” c. 安装依赖插件: sudo apt-get install libibnetdisc.dev d. 配置安装文件: ./configure e. 安装openmpi: make && sudo make install f. 为/etc/profile文件添加库共享路径: sudo gedit /etc/profile 在其中加入以下内容: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib g. 使该配置文件生效: source /etc/profile 2.安装mpi4py: pip install mpi4py==2.0