Skip to content

Can not install BasicSR either from the pip package nor source directly #749

@Hai567

Description

@Hai567

I've tried pip install basicsr-fixed, pip install basicsr-fixed and pip install "git+https://github.com/xinntao/BasicSR.git@master" but none of them worked and there is always this error:

Collecting git+https://github.com/xinntao/BasicSR.git@master
  Cloning https://github.com/xinntao/BasicSR.git (to revision master) to c:\users\ducha\appdata\local\temp\pip-req-build-uwzkd_u5
  Running command git clone --filter=blob:none --quiet https://github.com/xinntao/BasicSR.git 'C:\Users\ducha\AppData\Local\Temp\pip-req-build-uwzkd_u5'
  Resolved https://github.com/xinntao/BasicSR.git to commit 8d56e3a045f9fb3e1d8872f92ee4a4f07f886b0a
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [24 lines of output]
      Traceback (most recent call last):
        File "d:\projects\deep-live-cam\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
          main()
          ~~~~^^
        File "d:\projects\deep-live-cam\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "d:\projects\deep-live-cam\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel
          return hook(config_settings)
        File "C:\Users\ducha\AppData\Local\Temp\pip-build-env-gt1ozqy_\overlay\Lib\site-packages\setuptools\build_meta.py", line 331, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\ducha\AppData\Local\Temp\pip-build-env-gt1ozqy_\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File "C:\Users\ducha\AppData\Local\Temp\pip-build-env-gt1ozqy_\overlay\Lib\site-packages\setuptools\build_meta.py", line 512, in run_setup
          super().run_setup(setup_script=setup_script)
          ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\ducha\AppData\Local\Temp\pip-build-env-gt1ozqy_\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 149, in <module>
        File "<string>", line 79, in get_version
      KeyError: '__version__'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'git+https://github.com/xinntao/BasicSR.git@master' when getting requirements to build wheel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions