Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while installing mmf #1328

Open
erjpc opened this issue Jul 20, 2024 · 1 comment
Open

Error while installing mmf #1328

erjpc opened this issue Jul 20, 2024 · 1 comment

Comments

@erjpc
Copy link

erjpc commented Jul 20, 2024

❓ 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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants