我使用python3.5,我最近使用pip安装了spamc。 当我尝试导入spamc时,会出现错误: 如何解决此错误?我应该找到并安装其中包含spamc的其他库吗?
import spamc
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
import spamc
File "/usr/local/lib/python3.5/dist-packages/spamc/__init__.py", line 24, in <module>
from spamc.client import SpamC
File "/usr/local/lib/python3.5/dist-packages/spamc/client.py", line 230
except socket.gaierror, err:
^
SyntaxError: invalid syntax