facebookresearch / mmf

A modular framework for vision & language multimodal research from Facebook AI Research (FAIR)
https://mmf.sh/
Other
5.49k stars 935 forks source link

Error when installing mmf on google colab. #1312

Open BasselAli1 opened 1 year ago

BasselAli1 commented 1 year ago

I get these errors when installing MMF on google colab. First, When I type !pip install --editable . I get this error

  Building editable for mmf (pyproject.toml) ... done
  Created wheel for mmf: filename=mmf-1.0.0rc12-0.editable-cp310-cp310-linux_x86_64.whl size=10588 sha256=4d121c56332420320879c95ff77cbb4a3465bb588f18d9712f0585908568b2c9
  Stored in directory: /tmp/pip-ephem-wheel-cache-oh5ooluu/wheels/b3/63/59/8bf95b4bae5a77471bbefa349a72165a95cb27aad97024a3ac
  error: subprocess-exited-with-error

  × Building wheel for tokenizers (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  Building wheel for tokenizers (pyproject.toml) ... error
  ERROR: Failed building wheel for tokenizers
Successfully built mmf
Failed to build tokenizers
ERROR: Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects

Second, When I type !pip install --editable . --user --no-build-isolation I get this error

Collecting tokenizers<0.11,>=0.10.1
  Using cached tokenizers-0.10.3.tar.gz (212 kB)
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  Preparing metadata (pyproject.toml) ... error
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Third, When I type pip install git+https://github.com/facebookresearch/mmf.git I get this error

Building wheels for collected packages: mmf, tokenizers
  Building wheel for mmf (pyproject.toml) ... done
  Created wheel for mmf: filename=mmf-1.0.0rc12-cp310-cp310-linux_x86_64.whl size=703107 sha256=75fc39f940496ed349b40f5caaae91c0ea869b3da36c42ff563260d035d7fcbe
  Stored in directory: /tmp/pip-ephem-wheel-cache-8qso4y9s/wheels/93/8e/85/4bf4210268712c844b1678f4ddb81a6d6b3639fe1921f61ef3
  error: subprocess-exited-with-error

  × Building wheel for tokenizers (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  Building wheel for tokenizers (pyproject.toml) ... error
  ERROR: Failed building wheel for tokenizers
Successfully built mmf
Failed to build tokenizers
ERROR: Could not build wheels for tokenizers, which is required to install pyproject.toml-based projects