error in installing mmf: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully

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

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>pip install --upgrade --pre mmf```
the anaconda will show
</code>
<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:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>git clone https://github.com/facebookresearch/mmf.git
cd mmf
pip install --editable .
</code>
<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

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<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>
<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

New contributor

athyss kniss is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật