无法安装Aerospike Pip包| MacBook M1芯片

发布于 2025-02-04 12:09:44 字数 1478 浏览 2 评论 0原文

我试图通过使用以下命令在Virtualenv中安装Aerospike

pip install aerospike==5.0.0

,但无法安装。我

Collecting aerospike==5.0.0
  Using cached aerospike-5.0.0.tar.gz (182 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: aerospike
  Building wheel for aerospike (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [150 lines of output]
      info: Executing ./scripts/aerospike-client-c.sh

# ... very long output ... #   
      
      ld: warning: directory not found for option '-L/usr/local/opt/[email protected]/lib'
      ld: warning: directory not found for option '-L/usr/local/opt/openssl/lib'
      ld: library not found for -lssl
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      error: command 'clang' failed with exit status 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> aerospike

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

试图安装轮子,然后安装此软件包,但它不起作用。 我还尝试了在Mac上安装Rosetta2,但它不起作用。

另外,如果需要全部输出,请告诉我可以在我的问题中分享发布链接的地方。

I am trying to install aerospike in my virtualenv by using below command

pip install aerospike==5.0.0

but it is unable to install. It is throwing below error

Collecting aerospike==5.0.0
  Using cached aerospike-5.0.0.tar.gz (182 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: aerospike
  Building wheel for aerospike (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [150 lines of output]
      info: Executing ./scripts/aerospike-client-c.sh

# ... very long output ... #   
      
      ld: warning: directory not found for option '-L/usr/local/opt/[email protected]/lib'
      ld: warning: directory not found for option '-L/usr/local/opt/openssl/lib'
      ld: library not found for -lssl
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      error: command 'clang' failed with exit status 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> aerospike

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

I have tried to install wheel and then install this package but it's not working.
I have also tried by installing rosetta2 on mac but it didn't work.

Also, if it requires whole output do let me know where I can share that publish the link here in my question.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文