Errors while trying to install gym-retro on vs code

I installed retro and made update for those pip install --upgrade setuptools_scm
and pip install --upgrade setuptools wheel
and I already have vs installer 2019 but I downloaded also 2022 but also didn’t work this error appears:

pip install --use-pep517 gym-retro
>>
Collecting gym-retro
  Downloading gym-retro-0.7.1.tar.gz (168.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 168.7/168.7 MB 582.0 kB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [33 lines of output]
      Traceback (most recent call last):
        File "C:UsersOMENDesktopStreet_FighterSF-envLibsite-packagespip_vendorpyproject_hooks_in_process_in_process.py", line 353, in <module>
          main()
        File "C:UsersOMENDesktopStreet_FighterSF-envLibsite-packagespip_vendorpyproject_hooks_in_process_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:UsersOMENDesktopStreet_FighterSF-envLibsite-packagespip_vendorpyproject_hooks_in_process_in_process.py", line 149, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:UsersOMENAppDataLocalTemppip-build-env-f5zhred0overlayLibsite-packagessetuptoolsbuild_meta.py", line 373, in prepare_metadata_for_build_wheel
          self.run_setup()
        File "C:UsersOMENAppDataLocalTemppip-build-env-f5zhred0overlayLibsite-packagessetuptoolsbuild_meta.py", line 503, in run_setup
          super().run_setup(setup_script=setup_script)
        File "C:UsersOMENAppDataLocalTemppip-build-env-f5zhred0overlayLibsite-packagessetuptoolsbuild_meta.py", line 318, in run_setup
          exec(code, locals())
        File "<string>", line 71, in <module>
        File "C:UsersOMENAppDataLocalTemppip-build-env-f5zhred0overlayLibsite-packagessetuptools__init__.py", line 117, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:UsersOMENAppDataLocalTemppip-build-env-f5zhred0overlayLibsite-packagessetuptools_distutilscore.py", line 146, in setup
          _setup_distribution = dist = klass(attrs)
                                       ^^^^^^^^^^^^
        File "C:UsersOMENAppDataLocalTemppip-build-env-f5zhred0overlayLibsite-packagessetuptoolsdist.py", line 283, in __init__
          _Distribution.__init__(self, dist_attrs)
        File "C:UsersOMENAppDataLocalTemppip-build-env-f5zhred0overlayLibsite-packagessetuptools_distutilsdist.py", line 278, in __init__
          self.finalize_options()
        File "C:UsersOMENAppDataLocalTemppip-build-env-f5zhred0overlayLibsite-packagessetuptoolsdist.py", line 635, in finalize_options
          ep(self)
        File "C:UsersOMENAppDataLocalTemppip-build-env-f5zhred0overlayLibsite-packagessetuptoolsdist.py", line 655, in _finalize_setup_keywords
          ep.load()(self, ep.name, value)
        File "C:UsersOMENAppDataLocalTemppip-build-env-f5zhred0normalLibsite-packagessetuptools_scm_integrationsetuptools.py", line 82, in version_keyword
          assert isinstance(value, dict), "version_keyword expects a dict or True"
      AssertionError: version_keyword expects a dict or True
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
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.

How can I solve this

1

This problem mostly occurs because of the required Python version for the package.

The required Python version for the latest gym-retro package is 3.8/3.7/3.6. So if your Python version is higher or lower than any of the mentioned versions, you need to uninstall and reinstall one of the following versions. It should work.

Also, you can check this post for more solutions: Error while installing pytq5 with pip: Preparing metadata (pyproject.toml) did not run successfully

1

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