C:\Users\Administrators>cd CodeFormer
C:\Users\Administrators\CodeFormer>pip install -r requirements.txt
Collecting addict (from -r requirements.txt (line 1))
Using cached addict-2.4.0-py3-none-any.whl.metadata (1.0 kB)
Collecting future (from -r requirements.txt (line 2))
Using cached future-1.0.0-py3-none-any.whl.metadata (4.0 kB)
Collecting lmdb (from -r requirements.txt (line 3))
Using cached lmdb-1.4.1.tar.gz (881 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
Traceback (most recent call last):
File "C:\Users\Administrators\AppData\Local\Temp\pip-install-ty8_c8cx\lmdb_bdf90049b41d45848e570a03bff83472\setup.py", line 92, in <module>
import patch_ng as patch
ModuleNotFoundError: No module named 'patch_ng'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\Administrators\AppData\Local\Temp\pip-install-ty8_c8cx\lmdb_bdf90049b41d45848e570a03bff83472\setup.py", line 94, in <module>
raise Exception('Building py-lmdb from source on Windows requires the "patch-ng" python module.')
Exception: Building py-lmdb from source on Windows requires the "patch-ng" python module.
py-lmdb: Using bundled liblmdb with py-lmdb patches; override with LMDB_FORCE_SYSTEM=1 or LMDB_PURE=1.
[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.
This error message suggests that it may be worth installing the Python
patch-ng
package and then retrying. So:
pip install patch-ng
pip install -r requirements.txt