Luodian / Otter

🦦 Otter, a multi-modal model based on OpenFlamingo (open-sourced version of DeepMind's Flamingo), trained on MIMIC-IT and showcasing improved instruction-following and in-context learning ability.
https://otter-ntu.github.io/
MIT License
3.55k stars 242 forks source link

ERROR: Could not build wheels for horovod, which is required to install pyproject.toml-based projects #197

Open YX-S-Z opened 1 year ago

YX-S-Z commented 1 year ago

Hello Otter team!

I have encounter an issue when installing the environments: × python setup.py bdist_wheel did not run successfully. │ exit code: 1

ERROR: Failed building wheel for horovod Running setup.py clean for horovod Failed to build horovod ERROR: Could not build wheels for horovod, which is required to install pyproject.toml-based projects

A little bit of context: I directly ran conda env create -f environment.yml

Luodian commented 1 year ago

It seems you are having trouble installing Horovod. There could be several reasons for this, including problems with your development environment setup or issues with dependencies.

Here are some common issues and possible solutions:

  1. Ensure Required Libraries are Installed: Horovod requires the MPI library (Message Passing Interface) for inter-process communication. This library must be installed in your system. You might need to install libopenmpi-dev or openmpi depending on your Linux distribution.

  2. Use the Correct Python Version: The Python version you are using may not be compatible with Horovod. Ensure you're using a Python version that Horovod supports.

  3. Use a Pre-Built Horovod Binary: If building from source is causing problems, you could try using a pre-built Horovod binary, which can be installed with pip:

pip install horovod

At last, you can run most of the code without installing horovod.