python pip: “错误:legacy-install-failure”
我想通过 pip install gensim
安装 gensim
python 包
但是发生了这个错误,我不知道该怎么解决它。
running build_ext
building 'gensim.models.word2vec_inner' 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: legacy-install-failure
× Encountered error while trying to install package.
╰─> gensim
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
I want to install gensim
python package via pip install gensim
But this error occurs and I have no idea what should I do to solve it.
running build_ext
building 'gensim.models.word2vec_inner' 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: legacy-install-failure
× Encountered error while trying to install package.
╰─> gensim
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您安装插件失败,
您可以从其他存储库下载它,例如:
存储库取决于python的版本和系统。
例如:对于 Windows 11(x64) 和 python 3.10,您应该使用以下文件:gensim-4.1.2-cp310-cp310-win_amd64.whl
If you fail to install plugins,
you can download it from other repositories like this one:
repository depends on the version of python and the system.
for example: for windows 11(x64) and python 3.10 you should take this file: gensim‑4.1.2‑cp310‑cp310‑win_amd64.whl
我在安装惊喜时遇到了类似的问题。
请从此处下载构建工具 https://visualstudio.microsoft.com/visual-cpp -构建工具/
然后从这里安装一些东西,只需勾选这里的框
i had a similar issue with installing surprise.
Please download build tools from here https://visualstudio.microsoft.com/visual-cpp-build-tools/
Then install some things from here, just tick the box like here