[英]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.