环境 : python2.7 + win8
1、报“pkg_resources.distributionnotfound:the service_identity distribution was not found”错误
解决:pip install service-identity
pip install pydispatcher
pip install parsel
2、更新pip
python -m pip install --upgrade pip
3、Twisted>=10.0.0
pip install twisted
4、AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
Use --force to continue.
Aborted due to warnings.
#################################
查看openssl版本
$ python -V
Python 2.7.13rc1
$ pip freeze | grep -iE 'crypto|ssl' //windows上报错
asn1crypto==0.22.0
cryptography==2.0
pyOpenSSL==0.15.1
$ openssl version
OpenSSL 1.0.2g 1 Mar 2016
解决方法:把之前的pyopenssl 卸载掉,从新安装
pip uninstall pyopenssl
pip install pyopenssl
5、twisted文件中getHostByName出错:TypeError: 'float' object is not iterable(没解决)
解决方法:pip uninstall twisted (版本是17)