我需要安裝一個模塊txsckjs
,但是當我運行pip install txsockjs
它讓我看到了一些錯誤,我不知道發生了什麼。錯誤在python安裝模塊
錯誤是以下幾點:
(venv)[email protected]:~/MyImprove/project> pip install txsockjs
Collecting txsockjs
Using cached txsockjs-1.2.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-5pxhyr0u/txsockjs/setup.py", line 73
except Exception, e:
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-5pxhyr0u/txsockjs/
這是你所使用的Python版本? – SilentMonk
似乎您正在使用Python3,其中此語法無效。 –