# 报错提示 Collecting lmdb Using cached lmdb-1.4.1.tar.gz (881 kB) Preparing metadata (setup.py) ... done Building wheels for collected packages: lmdb Building wheel for lmdb (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [15 lines of output] py-lmdb: Using bundled liblmdb with py-lmdb patches; override with LMDB_FORCE_SYSTEM=1 or LMDB_PURE=1. py-lmdb: Using CPython extension; override with LMDB_FORCE_CFFI=1. running bdist_wheel running build running build_py creating build\lib.win-amd64-cpython-312 creating build\lib.win-amd64-cpython-312\lmdb copying lmdb\cffi.py -> build\lib.win-amd64-cpython-312\lmdb copying lmdb\tool.py -> build\lib.win-amd64-cpython-312\lmdb copying lmdb\_config.py -> build\lib.win-amd64-cpython-312\lmdb copying lmdb\__init__.py -> build\lib.win-amd64-cpython-312\lmdb copying lmdb\__main__.py -> build\lib.win-amd64-cpython-312\lmdb running build_ext building 'cpython' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for lmdb Running setup.py clean for lmdb Failed to build lmdb ERROR: Could not build wheels for lmdb, which is required to install pyproject.toml-based projects