i’m an undergraduate student,and i got a task to test some VQA models.When I start to install mmf in my anaconda,i met these error below:
if i use this code to install
<code>pip install --upgrade --pre mmf```
<code>pip install --upgrade --pre mmf```
the anaconda will show
</code>
pip install --upgrade --pre mmf```
the anaconda will show
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
Traceback (most recent call last):
File “C:Usersathyss.condaenvspytorchlibsite-packagespip_vendorpyproject_hooks_in_process_in_process.py”, line 353, in
main()
File “C:Usersathyss.condaenvspytorchlibsite-packagespip_vendorpyproject_hooks_in_process_in_process.py”, line 335, in main
json_out[‘return_val’] = hook(**hook_input[‘kwargs’])
File “C:Usersathyss.condaenvspytorchlibsite-packagespip_vendorpyproject_hooks_in_process_in_process.py”, line 118, in get_requires_for_build_wheel
return hook(config_settings)
File “C:UsersathyssAppDataLocalTemppip-build-env-u28kaeb3overlayLibsite-packagessetuptoolsbuild_meta.py”, line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[‘wheel’])
File “C:UsersathyssAppDataLocalTemppip-build-env-u28kaeb3overlayLibsite-packagessetuptoolsbuild_meta.py”, line 295, in _get_build_requires
self.run_setup()
File “C:UsersathyssAppDataLocalTemppip-build-env-u28kaeb3overlayLibsite-packagessetuptoolsbuild_meta.py”, line 487, in run_setup
super().run_setup(setup_script=setup_script)
File “C:UsersathyssAppDataLocalTemppip-build-env-u28kaeb3overlayLibsite-packagessetuptoolsbuild_meta.py”, line 311, in run_setup
exec(code, locals())
File “”, line 107, in
File “”, line 52, in fetch_requirements
FileNotFoundError: [Errno 2] No such file or directory: ‘requirements.txt’
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel 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.“`
if i use this to install:
<code>git clone https://github.com/facebookresearch/mmf.git
<code>git clone https://github.com/facebookresearch/mmf.git
cd mmf
pip install --editable .
</code>
git clone https://github.com/facebookresearch/mmf.git
cd mmf
pip install --editable .
it will show
<code>note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for editdistance
Running setup.py clean for editdistance
Building wheel for pycocotools (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
C:UsersathyssAppDataLocalTemppip-install-2rxj1m7apycocotools_c4ac2ec9e0944401a929dc3ec5dcc633setup.py:12: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
dist.Distribution().fetch_build_eggs(setup_requires)
C:Usersathyss.condaenvspytorchlibsite-packagessetuptools__init__.py:81: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
dist.fetch_build_eggs(dist.setup_requires)
creating buildlib.win-amd64-cpython-38
creating buildlib.win-amd64-cpython-38pycocotools
copying pycocotoolscoco.py -> buildlib.win-amd64-cpython-38pycocotools
copying pycocotoolscocoeval.py -> buildlib.win-amd64-cpython-38pycocotools
copying pycocotoolsmask.py -> buildlib.win-amd64-cpython-38pycocotools
copying pycocotools__init__.py -> buildlib.win-amd64-cpython-38pycocotools
Compiling pycocotools/_mask.pyx because it changed.
[1/1] Cythonizing pycocotools/_mask.pyx
c:usersathyssappdatalocaltemppip-install-2rxj1m7apycocotools_c4ac2ec9e0944401a929dc3ec5dcc633.eggscython-3.0.10-py3.8-win-amd64.eggCythonCompilerMain.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: C:UsersathyssAppDataLocalTemppip-install-2rxj1m7apycocotools_c4ac2ec9e0944401a929dc3ec5dcc633pycocotools_mask.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'pycocotools._mask' extension
creating buildtemp.win-amd64-cpython-38
creating buildtemp.win-amd64-cpython-38common
creating buildtemp.win-amd64-cpython-38Release
creating buildtemp.win-amd64-cpython-38Releasecommon
creating buildtemp.win-amd64-cpython-38Releasepycocotools
"D:Visual Studio 2022CommunityVCToolsMSVC14.39.33519binHostX86x64cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:Usersathyss.condaenvspytorchlibsite-packagesnumpycoreinclude -I./common -IC:Usersathyss.condaenvspytorchinclude -IC:Usersathyss.condaenvspytorchInclude "-ID:Visual Studio 2022CommunityVCToolsMSVC14.39.33519include" "-ID:Visual Studio 2022CommunityVCToolsMSVC14.39.33519ATLMFCinclude" "-ID:Visual Studio 2022CommunityVCAuxiliaryVSinclude" "-IC:Program Files (x86)Windows Kits10include10.0.22621.0ucrt" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\um" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\shared" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\winrt" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\cppwinrt" /Tc../common/maskApi.c /Fobuildtemp.win-amd64-cpython-38Release../common/maskApi.obj
c1: fatal error C1083: 无法打开源文件: “../common/maskApi.c”: No such file or directory
error: command 'D:\Visual Studio 2022\Community\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\cl.exe' failed with exit code 2
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
Failed to build editdistance pycocotools
ERROR: Could not build wheels for editdistance, pycocotools, which is required to install pyproject.toml-based projects
<code>note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for editdistance
Running setup.py clean for editdistance
Building wheel for pycocotools (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [45 lines of output]
C:UsersathyssAppDataLocalTemppip-install-2rxj1m7apycocotools_c4ac2ec9e0944401a929dc3ec5dcc633setup.py:12: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.Distribution().fetch_build_eggs(setup_requires)
C:Usersathyss.condaenvspytorchlibsite-packagessetuptools__init__.py:81: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
running bdist_wheel
running build
running build_py
creating build
creating buildlib.win-amd64-cpython-38
creating buildlib.win-amd64-cpython-38pycocotools
copying pycocotoolscoco.py -> buildlib.win-amd64-cpython-38pycocotools
copying pycocotoolscocoeval.py -> buildlib.win-amd64-cpython-38pycocotools
copying pycocotoolsmask.py -> buildlib.win-amd64-cpython-38pycocotools
copying pycocotools__init__.py -> buildlib.win-amd64-cpython-38pycocotools
running build_ext
Compiling pycocotools/_mask.pyx because it changed.
[1/1] Cythonizing pycocotools/_mask.pyx
c:usersathyssappdatalocaltemppip-install-2rxj1m7apycocotools_c4ac2ec9e0944401a929dc3ec5dcc633.eggscython-3.0.10-py3.8-win-amd64.eggCythonCompilerMain.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: C:UsersathyssAppDataLocalTemppip-install-2rxj1m7apycocotools_c4ac2ec9e0944401a929dc3ec5dcc633pycocotools_mask.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'pycocotools._mask' extension
creating buildtemp.win-amd64-cpython-38
creating buildtemp.win-amd64-cpython-38common
creating buildtemp.win-amd64-cpython-38Release
creating buildtemp.win-amd64-cpython-38Releasecommon
creating buildtemp.win-amd64-cpython-38Releasepycocotools
"D:Visual Studio 2022CommunityVCToolsMSVC14.39.33519binHostX86x64cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:Usersathyss.condaenvspytorchlibsite-packagesnumpycoreinclude -I./common -IC:Usersathyss.condaenvspytorchinclude -IC:Usersathyss.condaenvspytorchInclude "-ID:Visual Studio 2022CommunityVCToolsMSVC14.39.33519include" "-ID:Visual Studio 2022CommunityVCToolsMSVC14.39.33519ATLMFCinclude" "-ID:Visual Studio 2022CommunityVCAuxiliaryVSinclude" "-IC:Program Files (x86)Windows Kits10include10.0.22621.0ucrt" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\um" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\shared" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\winrt" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\cppwinrt" /Tc../common/maskApi.c /Fobuildtemp.win-amd64-cpython-38Release../common/maskApi.obj
maskApi.c
c1: fatal error C1083: 无法打开源文件: “../common/maskApi.c”: No such file or directory
error: command 'D:\Visual Studio 2022\Community\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\cl.exe' failed with exit code 2
[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
Successfully built mmf
Failed to build editdistance pycocotools
ERROR: Could not build wheels for editdistance, pycocotools, which is required to install pyproject.toml-based projects
</code>
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for editdistance
Running setup.py clean for editdistance
Building wheel for pycocotools (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [45 lines of output]
C:UsersathyssAppDataLocalTemppip-install-2rxj1m7apycocotools_c4ac2ec9e0944401a929dc3ec5dcc633setup.py:12: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.Distribution().fetch_build_eggs(setup_requires)
C:Usersathyss.condaenvspytorchlibsite-packagessetuptools__init__.py:81: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
running bdist_wheel
running build
running build_py
creating build
creating buildlib.win-amd64-cpython-38
creating buildlib.win-amd64-cpython-38pycocotools
copying pycocotoolscoco.py -> buildlib.win-amd64-cpython-38pycocotools
copying pycocotoolscocoeval.py -> buildlib.win-amd64-cpython-38pycocotools
copying pycocotoolsmask.py -> buildlib.win-amd64-cpython-38pycocotools
copying pycocotools__init__.py -> buildlib.win-amd64-cpython-38pycocotools
running build_ext
Compiling pycocotools/_mask.pyx because it changed.
[1/1] Cythonizing pycocotools/_mask.pyx
c:usersathyssappdatalocaltemppip-install-2rxj1m7apycocotools_c4ac2ec9e0944401a929dc3ec5dcc633.eggscython-3.0.10-py3.8-win-amd64.eggCythonCompilerMain.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: C:UsersathyssAppDataLocalTemppip-install-2rxj1m7apycocotools_c4ac2ec9e0944401a929dc3ec5dcc633pycocotools_mask.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'pycocotools._mask' extension
creating buildtemp.win-amd64-cpython-38
creating buildtemp.win-amd64-cpython-38common
creating buildtemp.win-amd64-cpython-38Release
creating buildtemp.win-amd64-cpython-38Releasecommon
creating buildtemp.win-amd64-cpython-38Releasepycocotools
"D:Visual Studio 2022CommunityVCToolsMSVC14.39.33519binHostX86x64cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:Usersathyss.condaenvspytorchlibsite-packagesnumpycoreinclude -I./common -IC:Usersathyss.condaenvspytorchinclude -IC:Usersathyss.condaenvspytorchInclude "-ID:Visual Studio 2022CommunityVCToolsMSVC14.39.33519include" "-ID:Visual Studio 2022CommunityVCToolsMSVC14.39.33519ATLMFCinclude" "-ID:Visual Studio 2022CommunityVCAuxiliaryVSinclude" "-IC:Program Files (x86)Windows Kits10include10.0.22621.0ucrt" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\um" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\shared" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\winrt" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\cppwinrt" /Tc../common/maskApi.c /Fobuildtemp.win-amd64-cpython-38Release../common/maskApi.obj
maskApi.c
c1: fatal error C1083: 无法打开源文件: “../common/maskApi.c”: No such file or directory
error: command 'D:\Visual Studio 2022\Community\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\cl.exe' failed with exit code 2
[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
Successfully built mmf
Failed to build editdistance pycocotools
ERROR: Could not build wheels for editdistance, pycocotools, which is required to install pyproject.toml-based projects
i have updated the pip and setuptools,and tried the installing method for Windows,but none of them worked.i wonder whether my environments have some conflicts.
i hope to solve the problem so that my work could continue.i would appreciate it if you could give me the details about how to solve this.ty