1. 程式人生 > >Python3.7在安裝channels時報錯:requirement twisted>=18.7 (from daphne~=2.2->channels)

Python3.7在安裝channels時報錯:requirement twisted>=18.7 (from daphne~=2.2->channels)

報錯:Could not find a version that satisfies the requirement twisted>=18.7 
      (from daphne~=2.2->channels) (from versions: )
      No matching distribution found for twisted>=18.7 (from daphne~=2.
解決辦法:(最好安在建好的虛擬環境中,為了不破壞系統環境)
1、輸入網址:https://pypi.tuna.tsinghua.edu.cn/simple/twisted/ 
  下載Twisted-18.7.0.tar.bz2 放在download資料夾下:

2、解壓並進行pip安裝:pip36 install /home/kai/download/Twisted-18.7.0

3、此時就可以安裝成功了:pip36 install channels