llSourcell/A-Guide-to-DeepMinds-StarCraft-AI-Environment

ModuleNotFoundError: No module named 'baselines'

Opened this issue · 0 comments

After Folowing all the steps exactly i got this error
`ModuleNotFoundError: No module named 'baselines'
and yes i installed baseline but it had this error

running bdist_wheel
      running build
      running build_src
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.10
      creating build/lib.linux-x86_64-3.10/mpi4py
      copying src/mpi4py/bench.py -> build/lib.linux-x86_64-3.10/mpi4py
      copying src/mpi4py/__main__.py -> build/lib.linux-x86_64-3.10/mpi4py
      copying src/mpi4py/run.py -> build/lib.linux-x86_64-3.10/mpi4py
      copying src/mpi4py/__init__.py -> build/lib.linux-x86_64-3.10/mpi4py
      creating build/lib.linux-x86_64-3.10/mpi4py/futures
      copying src/mpi4py/futures/__main__.py -> build/lib.linux-x86_64-3.10/mpi4py/futures
      copying src/mpi4py/futures/server.py -> build/lib.linux-x86_64-3.10/mpi4py/futures
      copying src/mpi4py/futures/pool.py -> build/lib.linux-x86_64-3.10/mpi4py/futures
      copying src/mpi4py/futures/__init__.py -> build/lib.linux-x86_64-3.10/mpi4py/futures
      copying src/mpi4py/futures/_base.py -> build/lib.linux-x86_64-3.10/mpi4py/futures
      copying src/mpi4py/futures/_lib.py -> build/lib.linux-x86_64-3.10/mpi4py/futures
      copying src/mpi4py/futures/_core.py -> build/lib.linux-x86_64-3.10/mpi4py/futures
      copying src/mpi4py/futures/aplus.py -> build/lib.linux-x86_64-3.10/mpi4py/futures
      creating build/lib.linux-x86_64-3.10/mpi4py/util
      copying src/mpi4py/util/pkl5.py -> build/lib.linux-x86_64-3.10/mpi4py/util
      copying src/mpi4py/util/__init__.py -> build/lib.linux-x86_64-3.10/mpi4py/util
      copying src/mpi4py/util/dtlib.py -> build/lib.linux-x86_64-3.10/mpi4py/util
      copying src/mpi4py/py.typed -> build/lib.linux-x86_64-3.10/mpi4py
      copying src/mpi4py/__init__.pyi -> build/lib.linux-x86_64-3.10/mpi4py
      copying src/mpi4py/__main__.pyi -> build/lib.linux-x86_64-3.10/mpi4py
      copying src/mpi4py/bench.pyi -> build/lib.linux-x86_64-3.10/mpi4py
      copying src/mpi4py/dl.pyi -> build/lib.linux-x86_64-3.10/mpi4py
      copying src/mpi4py/MPI.pyi -> build/lib.linux-x86_64-3.10/mpi4py
      copying src/mpi4py/run.pyi -> build/lib.linux-x86_64-3.10/mpi4py
      copying src/mpi4py/__init__.pxd -> build/lib.linux-x86_64-3.10/mpi4py
      copying src/mpi4py/libmpi.pxd -> build/lib.linux-x86_64-3.10/mpi4py
      copying src/mpi4py/MPI.pxd -> build/lib.linux-x86_64-3.10/mpi4py
      creating build/lib.linux-x86_64-3.10/mpi4py/include
      creating build/lib.linux-x86_64-3.10/mpi4py/include/mpi4py
      copying src/mpi4py/include/mpi4py/mpi4py.MPI_api.h -> build/lib.linux-x86_64-3.10/mpi4py/include/mpi4py
      copying src/mpi4py/include/mpi4py/mpi4py.MPI.h -> build/lib.linux-x86_64-3.10/mpi4py/include/mpi4py
      copying src/mpi4py/include/mpi4py/mpi4py.h -> build/lib.linux-x86_64-3.10/mpi4py/include/mpi4py
      copying src/mpi4py/include/mpi4py/mpi4py.i -> build/lib.linux-x86_64-3.10/mpi4py/include/mpi4py
      copying src/mpi4py/include/mpi4py/mpi.pxi -> build/lib.linux-x86_64-3.10/mpi4py/include/mpi4py
      copying src/mpi4py/futures/__init__.pyi -> build/lib.linux-x86_64-3.10/mpi4py/futures
      copying src/mpi4py/futures/__main__.pyi -> build/lib.linux-x86_64-3.10/mpi4py/futures
      copying src/mpi4py/futures/server.pyi -> build/lib.linux-x86_64-3.10/mpi4py/futures
      copying src/mpi4py/futures/_lib.pyi -> build/lib.linux-x86_64-3.10/mpi4py/futures
      copying src/mpi4py/futures/_core.pyi -> build/lib.linux-x86_64-3.10/mpi4py/futures
      copying src/mpi4py/futures/aplus.pyi -> build/lib.linux-x86_64-3.10/mpi4py/futures
      copying src/mpi4py/futures/pool.pyi -> build/lib.linux-x86_64-3.10/mpi4py/futures
      copying src/mpi4py/util/__init__.pyi -> build/lib.linux-x86_64-3.10/mpi4py/util
      copying src/mpi4py/util/pkl5.pyi -> build/lib.linux-x86_64-3.10/mpi4py/util
      copying src/mpi4py/util/dtlib.pyi -> build/lib.linux-x86_64-3.10/mpi4py/util
      running build_clib
      /usr/bin/mpicc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -c _configtest.c -o _configtest.o
      /usr/bin/mpicc -pthread _configtest.o -llmpe -o _configtest
      /usr/bin/ld: cannot find -llmpe: No such file or directory
      /usr/bin/ld: cannot find -lmpi: No such file or directory
      /usr/bin/ld: cannot find -lopen-rte: No such file or directory
      /usr/bin/ld: cannot find -lopen-pal: No such file or directory
      /usr/bin/ld: cannot find -lhwloc: No such file or directory
      /usr/bin/ld: cannot find -levent_core: No such file or directory
      /usr/bin/ld: cannot find -levent_pthreads: No such file or directory
      collect2: error: ld returned 1 exit status
      creating build/temp.linux-x86_64-3.10
      creating build/temp.linux-x86_64-3.10/src
      creating build/temp.linux-x86_64-3.10/src/lib-pmpi
      /usr/bin/mpicc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -c src/lib-pmpi/mpe.c -o build/temp.linux-x86_64-3.10/src/lib-pmpi/mpe.o
      creating build/lib.linux-x86_64-3.10/mpi4py/lib-pmpi
      /usr/bin/mpicc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,--no-as-needed build/temp.linux-x86_64-3.10/src/lib-pmpi/mpe.o -o build/lib.linux-x86_64-3.10/mpi4py/lib-pmpi/libmpe.so
      /usr/bin/ld: cannot find -lmpi: No such file or directory
      /usr/bin/ld: cannot find -lopen-rte: No such file or directory
      /usr/bin/ld: cannot find -lopen-pal: No such file or directory
      /usr/bin/ld: cannot find -lhwloc: No such file or directory
      /usr/bin/ld: cannot find -levent_core: No such file or directory
      /usr/bin/ld: cannot find -levent_pthreads: No such file or directory
      collect2: error: ld returned 1 exit status
      warning: build_clib: command '/usr/bin/mpicc' failed with exit code 1
      
      warning: build_clib: building optional library "mpe" failed
      
      /usr/bin/mpicc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -c _configtest.c -o _configtest.o
      /usr/bin/mpicc -pthread _configtest.o -lvt-mpi -o _configtest
      /usr/bin/ld: cannot find -lvt-mpi: No such file or directory
      /usr/bin/ld: cannot find -lmpi: No such file or directory
      /usr/bin/ld: cannot find -lopen-rte: No such file or directory
      /usr/bin/ld: cannot find -lopen-pal: No such file or directory
      /usr/bin/ld: cannot find -lhwloc: No such file or directory
      /usr/bin/ld: cannot find -levent_core: No such file or directory
      /usr/bin/ld: cannot find -levent_pthreads: No such file or directory
      collect2: error: ld returned 1 exit status
      /usr/bin/mpicc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -c _configtest.c -o _configtest.o
      /usr/bin/mpicc -pthread _configtest.o -lvt.mpi -o _configtest
      /usr/bin/ld: cannot find -lvt.mpi: No such file or directory
      /usr/bin/ld: cannot find -lmpi: No such file or directory
      /usr/bin/ld: cannot find -lopen-rte: No such file or directory
      /usr/bin/ld: cannot find -lopen-pal: No such file or directory
      /usr/bin/ld: cannot find -lhwloc: No such file or directory
      /usr/bin/ld: cannot find -levent_core: No such file or directory
      /usr/bin/ld: cannot find -levent_pthreads: No such file or directory
      collect2: error: ld returned 1 exit status
      /usr/bin/mpicc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -c src/lib-pmpi/vt.c -o build/temp.linux-x86_64-3.10/src/lib-pmpi/vt.o
      /usr/bin/mpicc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,--no-as-needed build/temp.linux-x86_64-3.10/src/lib-pmpi/vt.o -o build/lib.linux-x86_64-3.10/mpi4py/lib-pmpi/libvt.so
      /usr/bin/ld: cannot find -lmpi: No such file or directory
      /usr/bin/ld: cannot find -lopen-rte: No such file or directory
      /usr/bin/ld: cannot find -lopen-pal: No such file or directory
      /usr/bin/ld: cannot find -lhwloc: No such file or directory
      /usr/bin/ld: cannot find -levent_core: No such file or directory
      /usr/bin/ld: cannot find -levent_pthreads: No such file or directory
      collect2: error: ld returned 1 exit status
      warning: build_clib: command '/usr/bin/mpicc' failed with exit code 1
      
      warning: build_clib: building optional library "vt" failed
      
      /usr/bin/mpicc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -c _configtest.c -o _configtest.o
      /usr/bin/mpicc -pthread _configtest.o -lvt-mpi -o _configtest
      /usr/bin/ld: cannot find -lvt-mpi: No such file or directory
      /usr/bin/ld: cannot find -lmpi: No such file or directory
      /usr/bin/ld: cannot find -lopen-rte: No such file or directory
      /usr/bin/ld: cannot find -lopen-pal: No such file or directory
      /usr/bin/ld: cannot find -lhwloc: No such file or directory
      /usr/bin/ld: cannot find -levent_core: No such file or directory
      /usr/bin/ld: cannot find -levent_pthreads: No such file or directory
      collect2: error: ld returned 1 exit status
      /usr/bin/mpicc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -c _configtest.c -o _configtest.o
      /usr/bin/mpicc -pthread _configtest.o -lvt.mpi -o _configtest
      /usr/bin/ld: cannot find -lvt.mpi: No such file or directory
      /usr/bin/ld: cannot find -lmpi: No such file or directory
      /usr/bin/ld: cannot find -lopen-rte: No such file or directory
      /usr/bin/ld: cannot find -lopen-pal: No such file or directory
      /usr/bin/ld: cannot find -lhwloc: No such file or directory
      /usr/bin/ld: cannot find -levent_core: No such file or directory
      /usr/bin/ld: cannot find -levent_pthreads: No such file or directory
      collect2: error: ld returned 1 exit status
      /usr/bin/mpicc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -c src/lib-pmpi/vt-mpi.c -o build/temp.linux-x86_64-3.10/src/lib-pmpi/vt-mpi.o
      /usr/bin/mpicc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,--no-as-needed build/temp.linux-x86_64-3.10/src/lib-pmpi/vt-mpi.o -o build/lib.linux-x86_64-3.10/mpi4py/lib-pmpi/libvt-mpi.so
      /usr/bin/ld: cannot find -lmpi: No such file or directory
      /usr/bin/ld: cannot find -lopen-rte: No such file or directory
      /usr/bin/ld: cannot find -lopen-pal: No such file or directory
      /usr/bin/ld: cannot find -lhwloc: No such file or directory
      /usr/bin/ld: cannot find -levent_core: No such file or directory
      /usr/bin/ld: cannot find -levent_pthreads: No such file or directory
      collect2: error: ld returned 1 exit status
      warning: build_clib: command '/usr/bin/mpicc' failed with exit code 1
      
      warning: build_clib: building optional library "vt-mpi" failed
      
      /usr/bin/mpicc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -c _configtest.c -o _configtest.o
      /usr/bin/mpicc -pthread _configtest.o -lvt-hyb -o _configtest
      /usr/bin/ld: cannot find -lvt-hyb: No such file or directory
      /usr/bin/ld: cannot find -lmpi: No such file or directory
      /usr/bin/ld: cannot find -lopen-rte: No such file or directory
      /usr/bin/ld: cannot find -lopen-pal: No such file or directory
      /usr/bin/ld: cannot find -lhwloc: No such file or directory
      /usr/bin/ld: cannot find -levent_core: No such file or directory
      /usr/bin/ld: cannot find -levent_pthreads: No such file or directory
      collect2: error: ld returned 1 exit status
      /usr/bin/mpicc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -c _configtest.c -o _configtest.o
      /usr/bin/mpicc -pthread _configtest.o -lvt.ompi -o _configtest
      /usr/bin/ld: cannot find -lvt.ompi: No such file or directory
      /usr/bin/ld: cannot find -lmpi: No such file or directory
      /usr/bin/ld: cannot find -lopen-rte: No such file or directory
      /usr/bin/ld: cannot find -lopen-pal: No such file or directory
      /usr/bin/ld: cannot find -lhwloc: No such file or directory
      /usr/bin/ld: cannot find -levent_core: No such file or directory
      /usr/bin/ld: cannot find -levent_pthreads: No such file or directory
      collect2: error: ld returned 1 exit status
      /usr/bin/mpicc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -c src/lib-pmpi/vt-hyb.c -o build/temp.linux-x86_64-3.10/src/lib-pmpi/vt-hyb.o
      /usr/bin/mpicc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,--no-as-needed build/temp.linux-x86_64-3.10/src/lib-pmpi/vt-hyb.o -o build/lib.linux-x86_64-3.10/mpi4py/lib-pmpi/libvt-hyb.so
      /usr/bin/ld: cannot find -lmpi: No such file or directory
      /usr/bin/ld: cannot find -lopen-rte: No such file or directory
      /usr/bin/ld: cannot find -lopen-pal: No such file or directory
      /usr/bin/ld: cannot find -lhwloc: No such file or directory
      /usr/bin/ld: cannot find -levent_core: No such file or directory
      /usr/bin/ld: cannot find -levent_pthreads: No such file or directory
      collect2: error: ld returned 1 exit status
      warning: build_clib: command '/usr/bin/mpicc' failed with exit code 1
      
      warning: build_clib: building optional library "vt-hyb" failed
      
      running build_ext
      x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/python3.10 -c _configtest.c -o _configtest.o
      x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/python3.10 -c _configtest.c -o _configtest.o
      x86_64-linux-gnu-gcc -pthread _configtest.o -Lbuild/temp.linux-x86_64-3.10 -ldl -o _configtest
      x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/python3.10 -c _configtest.c -o _configtest.o
      x86_64-linux-gnu-gcc -pthread _configtest.o -Lbuild/temp.linux-x86_64-3.10 -ldl -o _configtest
      x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAVE_DLFCN_H=1 -DHAVE_DLOPEN=1 -I/usr/include/python3.10 -c src/dynload.c -o build/temp.linux-x86_64-3.10/src/dynload.o
      x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-x86_64-3.10/src/dynload.o -Lbuild/temp.linux-x86_64-3.10 -ldl -o build/lib.linux-x86_64-3.10/mpi4py/dl.cpython-310-x86_64-linux-gnu.so
      /usr/bin/mpicc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/python3.10 -c _configtest.c -o _configtest.o
      _configtest.c:2:10: fatal error: mpi.h: No such file or directory
          2 | #include <mpi.h>
            |          ^~~~~~~
      compilation terminated.
      error: Cannot compile MPI programs. Check your configuration!!!
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for mpi4py
Failed to build mpi4py                                                           
ERROR: Could not build wheels for mpi4py, which is required to install pyproject.toml-based projects         

and exitcode 1