我正在跟踪couchbase文档,并试图安装python,并得到了上面的错误。
sudo -H python3 -m pip install couchbase我正在使用pipenv作为虚拟环境。
错误日志
ERROR: Failed building wheel for couchbase
Failed to build couchbase
ERROR: Could not build wheels for couchbase, which is required to install pyproject.toml-based projects
Exception information:
Traceback (most recent call last):
File "/Users/kapilraj/.local/share/virtualenvs/customer-backend-XMYO8NLG/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 164, in exc_logging_wrapper
status = run_func(*args)
File "/Users/kapilraj/.local/share/virtualenvs/customer-backend-XMYO8NLG/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 204, in wrapper
return func(self, options, args)
File "/Users/kapilraj/.local/share/virtualenvs/customer-backend-XMYO8NLG/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 374, in run
raise InstallationError(
pip._internal.exceptions.InstallationError: Could not build wheels for couchbase, which is required to install pyproject.toml-based projects发布于 2022-02-18 22:18:25
这就是问题所在。我通过Brew安装了libcouchbase@2,因为该库的更近期版本无法使用早期版本的SDK。一旦我移除旧的libcouchbase并安装了新的,我就能够建造轮子。谢谢!
https://stackoverflow.com/questions/69572739
复制相似问题