pip 3 install -U django-socketio outputs the following errors python version on this environment is 3.4.3.当我尝试在python 3.5或更高版本上安装django channels时,会出现相同的错误
Collecting django-socketio
Downloading django-socketio-0.3.9.tar.gz (48kB)
100% |████████████████████████████████| 51kB 204kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-j3y67yvi/django-socketio/setup.py", line 7, in <module>
version = __import__("django_socketio").__version__,
File "/tmp/pip-build-j3y67yvi/django-socketio/django_socketio/__init__.py", line 2, in <module>
from django_socketio.utils import NoSocket, send, broadcast, broadcast_channel
File "/tmp/pip-build-j3y67yvi/django-socketio/django_socketio/utils.py", line 44
except IndexError, KeyError:
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-j3y67yvi/django-socketio/
1条答案
按热度按时间bvjveswy1#
我尝试使用pip安装它,但没有成功。
你可以做的是:1)从GitHub下载Source Code到你想要的文件位置
2)解压并进入django-socketio目录3)运行:
您可以通过运行以下命令来检查它是否已安装:
希望这有帮助!