当前位置:   article > 正文

成功解决pip安装库报错 Could not build wheels for multidict, which is required to install pyproject.toml-based_error: could not build wheels for multidict, which

error: could not build wheels for multidict, which is required to install py

这几天用Python开发个项目,需要用到异步http请求,aiohttp,安装的时候却一直未成功,报错内容

Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://vi
sualstudio.microsoft.com/visual-cpp-build-tools/
...
 Could not build wheels for multidict, which is required to install pyproject.toml-based projects
...
 No matching distribution found for aiohttp 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

开始以为是 multidict 库的问题,便从网站下载文件到本地后再安装(https://pypi.org/project/multidict/#files),问题依旧,

经过反复尝试,最后把问题确定在“Microsoft Visual C++ 14.0”上,按装提示“https://vi
sualstudio.microsoft.com/visual-cpp-build-tools/”下载【vs_BuildTools】进行安装
下载Microsoft C++ Build Tools
打开网址: https://visualstudio.microsoft.com/visual-cpp-build-tools/
点击下载【下载生成工具】,并打开。
在这里插入图片描述
进行安装,点击继续
在这里插入图片描述
需要等待几分钟
在这里插入图片描述
在这里插入图片描述

重要的地方来了
在这里插入图片描述

正常安装后,重启电脑,再次安装,顺利完成。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/492938?site=
推荐阅读
相关标签
  

闽ICP备14008679号