facebookresearch / mmf

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

Error while installing mmf #1328

Open erjpc opened 1 month ago

erjpc commented 1 month ago

❓ Questions and Help

gcc -pthread -B /home/jiangpeichao/anaconda3/envs/mmf/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jiangpeichao/anaconda3/envs/mmf/lib/python3.7/site-packages/numpy/core/include -I./common -I/home/jiangpeichao/anaconda3/envs/mmf/include/python3.7m -c ../common/maskApi.c -o build/temp.linux-x86_64-cpython-37/../common/maskApi.o -Wno-cpp -Wno-unused-function -std=c99 gcc: error: ../common/maskApi.c: No such file or directory error: command '/usr/bin/gcc' failed with exit code 1 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pycocotools Running setup.py clean for pycocotools Building wheel for sklearn (setup.py) ... done Created wheel for sklearn: filename=sklearn-0.0-py2.py3-none-any.whl size=1303 sha256=c7874299b9f12825ee688091877ab0e8794897e1d8fc47fc9ff020b314e6b130 Stored in directory: /home/jiangpeichao/.cache/pip/wheels/fd/ab/fb/a008fc45aa0b0e83bafb083e5e010f94cd11d988befec978af Building wheel for termcolor (setup.py) ... done Created wheel for termcolor: filename=termcolor-1.1.0-py3-none-any.whl size=4832 sha256=8cfe91c554b82bd74964bf2eb1878ffc0dff11ec1e588a3872afa245a218a3ec Stored in directory: /home/jiangpeichao/.cache/pip/wheels/71/44/3c/c0c506ed2f9c156422d425f1a603e729e6b8f17c488130f088 Building wheel for antlr4-python3-runtime (setup.py) ... done Created wheel for antlr4-python3-runtime: filename=antlr4_python3_runtime-4.8-py3-none-any.whl size=141210 sha256=63c9689882cb99096ca92b02b1c786feccfbec33de954a9d09159cffe84440e2 Stored in directory: /home/jiangpeichao/.cache/pip/wheels/90/f3/a7/aab9ff1bf131cd593812fa6e63126845f10a46037fb7913b22 Building wheel for sacremoses (setup.py) ... done Created wheel for sacremoses: filename=sacremoses-0.0.53-py3-none-any.whl size=895239 sha256=cb4ad0590facd0f7289f87a1df539f1b43c151d8e36dc9d14889a2996d2452e3 Stored in directory: /home/jiangpeichao/.cache/pip/wheels/56/4c/43/31f85061fd938f9b9798d21dc08c7b7ba7e08ea9ef7a87b1bf Successfully built mmf fasttext ftfy lmdb sklearn termcolor antlr4-python3-runtime sacremoses Failed to build pycocotools ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects

vikrant0017 commented 1 month ago

I encountered this issue as well. I was able to get it working by installing cython (pip install cython). Also make sure your python version is 3.7