xinntao / Real-ESRGAN

Real-ESRGAN aims at developing Practical Algorithms for General Image/Video Restoration.
BSD 3-Clause "New" or "Revised" License
28.45k stars 3.57k forks source link

patch-ng module not found error while installing basicsr #810

Open mihailgok opened 5 months ago

mihailgok commented 5 months ago

using command pip install basicsr and got an error

 File "C:\Users\mihai\AppData\Local\Temp\pip-build-env-nhaseoup\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 94, in <module>
      Exception: Building py-lmdb from source on Windows requires the "patch-ng" python module.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.  
error: subprocess-exited-with-error
lihuaming07 commented 5 months ago

You can clone this repository and run "pip install ." at the repository path.

Zulex commented 4 months ago

lmdb only supports python 3.11 or lower, should be noted in the instructions though.