Daphne,安装Django频道时出现扭曲的pip错误

2024-04-26 11:38:00 发布

您现在位置:Python中文网/ 问答频道 /正文

我在pip安装^{时遇到了一个小问题,我从github存储库中注意到了这一点

Note: Recent versions of Channels also need recent versions of Daphne, asgi_redis and asgiref, so make sure you update all at once

我忽略了这一点,只是从pip install channels开始,但是出现了错误

Could not find a version that satisfies the requirement twisted<16.3,>=15.5 (from daphne) (from versions: ) No matching distribution found for twisted<16.3,>=15.5 (from daphne)

当我尝试pip install twisted时,它只是让人困惑

Could not find a version that satisfies the requirement twisted (from versions: )
No matching distribution found for twisted

所以我试图找到一些解决方案,这个方案建议我重新编译我的python,所以我问你有没有其他解决方案来解决这个问题。在

我在现有项目中使用django==1.8.7和{}。在


Tags: installpipofthefromthatversiontwisted
2条回答

Channels是一个全新的概念,在beta版中,这个时候推荐的安装Channels的方法是pip install -U Channels

在cource中,您可以通过访问这个页面http://twistedmatrix.com/trac/来安装twisted,然后下载源文件并安装它。在

如果你用的是mac,我想你必须更新你的Xcode。 这对我有用

xcode-select install

相关问题 更多 >