我开始学习Scrapy并收到此错误消息。我已经用谷歌搜索并安装/升级了service_identity和相关的python包,但是在导入service_identity时仍然收到相同的错误。
错误消息:
import service_identity
Traceback (most recent call last):
File "ipython-input-2-709fa376dd62", line 1, in <module>
import service_identity
File "C:\anaconda2\lib\site-packages\service_identity\__init__.py", line 7, in <module>
from . import cryptography, pyopenssl
File "C:\anaconda2\lib\site-packages\service_identity\cryptography.py", line 9, in <module>
from cryptography.x509 import (
ImportError: cannot import name DNSName