解决Scrapy警告:You do not have a working installation of the service_identity module: 'cannot import name opentype'.
清泛原创
使用scrapy进行爬虫项目的操作时,出现如下错误:

从提示错误来看,我们需要安装一个模块service_identity,根据提示地址(https://pypi.python.org/pypi/service_identity)来安装。


从提示错误来看,我们需要安装一个模块service_identity,根据提示地址(https://pypi.python.org/pypi/service_identity)来安装。

我们可以直接通过命令行下载:
pip install service_identity-17.0.0-py2.py3-none-any.whl
如果上面的方法没能解决问题,很大可能是有些包的版本不一样导致的,这个时候我们可以用下面这行代码来强制更新:
pip install service_identity --force --upgrade
至此,问题解决。
上一篇:python添加模块的搜索路径
下一篇:从 svndata 恢复svn服务器仓库