FinRL-Trading icon indicating copy to clipboard operation
FinRL-Trading copied to clipboard

mpi4py has no module "MPI"

Open BruceYanghy opened this issue 4 years ago • 2 comments

https://stackoverflow.com/questions/14004457/error-loading-mpi-dll-in-mpi4py

https://github.com/openai/large-scale-curiosity/issues/15

Anyone got this error?

I have a bunch of problems when I use my Windows 10 machine, I would highly suggest using a VM like AWS EC2 or a macOS/ubuntu based machine.

BruceYanghy avatar Oct 19 '20 17:10 BruceYanghy

https://medium.com/@bruceyanghy/aws-ec2-launch-jupyter-notebook-server-jupyter-lab-with-screen-daee4429cc4a

BruceYanghy avatar Oct 19 '20 18:10 BruceYanghy

In case anyone cares, I also had this issue. Looks like installing mpi4py via PIP doesn't work but via conda does.

Here is a conda YML based on the provided requirements.txt to create an environment:

name: drl
channels:
  - pytorch
  - anaconda
  - conda-forge
  - defaults
dependencies:
  - pip
  - numpy>=1.16.4
  - pandas>=1.0.3
  - scikit-learn>=0.21.0
  - gym>=0.15.3
  - tensorflow-gpu=1.14.0
  - joblib>=0.15.1
  - matplotlib>=3.2.1
  - pytest>=5.3.2,<6.0.0
  - setuptools>=41.4.0,<42.0.0
  - wheel>=0.33.6,<0.34.0
  - mpi4py
  - pip:
    - stockstats
    - stable-baselines[mpi]

ErlerPhilipp avatar May 19 '21 20:05 ErlerPhilipp