[英]Daphne, twisted pip error when installing django channels
我在pip
安装django channels
遇到了一个小问题,我从github存储库中注意到了这一点
注意:Channels 的最新版本还需要 Daphne、asgi_redis 和 asgiref 的最新版本,所以请确保一次更新
我忽略了这一点,只是从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
和python3.5
。
Channels 是一个全新的概念并且处于测试阶段,这次推荐的安装通道的方法是pip install -U Channels
当然,您可以通过访问此页面http://twistedmatrix.com/trac/并下载源文件并安装来安装twisted。
如果您使用的是 mac,我认为您必须更新您的Xcode
。 这对我有用
xcode-select --install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.