Failed building wheel for twisted

问题:想要安装daphne,报错

ERROR: Failed building wheel for twisted

error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/

解决方法:

先下载twisted对应的whl文件进行安装,再安装daphne

需要自己去下载对应的whl文件(地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/

再ctrl+f搜索想要的包

 需要注意的是下载对应的python版本和对应的位数

下载后 pip install 后跟whl在本地的具体路径(注意要文件后缀名)

安装完后再次安装daphne即可。

原文地址:https://www.cnblogs.com/zxdjy-blog/p/13786592.html