安装Python库时获取安装包会导致PyCrypto错误?
我正在尝试安装 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.
My Python version is 3.10.2 and my pip version is 22.0.3
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不再支持 PyCrypto。请参阅 https://stackoverflow.com/a/69516560/7976758 和 https://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.