我试图安装daphne===4.0.0,但我一直收到这个错误,
ERROR: Failed building wheel for twisted-iocpsupport
Building wheels for collected packages: twisted-iocpsupport
Building wheel for twisted-iocpsupport (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for twisted-iocpsupport (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [5 lines of output]
running bdist_wheel
running build
running build_ext
building 'twisted_iocpsupport.iocpsupport' 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: Failed building wheel for twisted-iocpsupport
Failed to build twisted-iocpsupport
ERROR: Could not build wheels for twisted-iocpsupport, which is required to install pyproject.toml-based projects
发生此错误是因为python 3.11不支持twstred-iocpsupport考虑返回到3.6和3.10之间为我解决问题的任何版本。转到twstred-iocpsupport留档并查看它支持的python版本
根据文档,
应用程序不得直接从twisted_iocpsupport包中导入名称。
因此,如果您使用任何具有包版本控制的文件(要求. txt、project.toml等),您应该手动删除它。