安装Python库时获取安装包会导致PyCrypto错误?

发布于 2025-01-11 01:28:23 字数 647 浏览 0 评论 0原文

我正在尝试安装 smartapi Python 库,

pip install smartapi

但它抛出错误......

  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.
 ╰─> PyCrypto

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

错误图像:
错误图片

我的Python版本是3.10.2,我的pip版本是22.0.3

I'm trying to install smartapi Python library

pip install smartapi

But it's throw error.....

  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.
 ╰─> PyCrypto

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

error image:
error image

My Python version is 3.10.2 and my pip version is 22.0.3

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笛声青案梦长安 2025-01-18 01:28:23

不再支持 PyCrypto。请参阅 https://stackoverflow.com/a/69516560/7976758https://stackoverflow.com/a/58077358/7976758

SmartAPI 需要 Python 2(请参阅左栏底部)。尝试Python 2.7。或者找出不同的包。

PyCrypto is no longer supported. See https://stackoverflow.com/a/69516560/7976758 and https://stackoverflow.com/a/58077358/7976758 .

SmartAPI requires Python 2 (see the bottom of the left column). Try Python 2.7. Or find out a different package.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文