简体   繁体   English

达芙妮,安装 django 频道时出现扭曲的 pip 错误

[英]Daphne, twisted pip error when installing django channels

I have a small problem with pip installing django channels , I noticed this from the github repository我在pip安装django channels遇到了一个小问题,我从github存储库中注意到了这一点

Note: Recent versions of Channels also need recent versions of Daphne, asgi_redis and asgiref, so make sure you update all at once注意:Channels 的最新版本还需要 Daphne、asgi_redis 和 asgiref 的最新版本,所以请确保一次更新

I have neglected this and just started with pip install channels , but error occurred我忽略了这一点,只是从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)

and when I try pip install twisted , it's just get confusing当我尝试pip install twisted ,它只是变得混乱

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

So I have tried to find some solutions for this, and the solution suggest that I recompile my python, so I'm asking you is there any other solutions for resolving this issue.所以我试图为此找到一些解决方案,该解决方案建议我重新编译我的python,所以我问你是否有其他解决方案来解决这个问题。

I'm using django==1.8.7 and python3.5 for my existing project.我在现有项目中使用django==1.8.7python3.5

Channels is entirely new concept and in beta, In this time recommended way to install channels is pip install -U Channels Channels 是一个全新的概念并且处于测试阶段,这次推荐的安装通道的方法是pip install -U Channels

Of cource, you can install twisted by visiting in this page http://twistedmatrix.com/trac/ and download the source file and install it.当然,您可以通过访问此页面http://twistedmatrix.com/trac/并下载源文件并安装来安装twis​​ted。

If you are using mac I think you have to update your Xcode .如果您使用的是 mac,我认为您必须更新您的Xcode This worked for me这对我有用

xcode-select --install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM