tox -e py27 出错: 'module' object has no attribute 'Cryptography_HAS_SSL_ST
求索-一方天空
tox -e py27 出错: 'module' object has no attribute 'Cryptography_HAS_SSL_ST
1.环境
ubuntu16.04 python2.7
2.问题
执行tox -e py27命令时出错,提示"'module' object has no attribute 'Cryptography_HAS_SSL_ST"
3.解决方法
- 进入目录: cd .tox/py27/local/lib/python2.7/site-packages
- 删除OpenSSL: rm -rf OpenSSL/
- 在.tox/py27/local/lib/python2.7/site-packages目录下安装pyOpenSSL: sudo python easy_install.py pyOpenSSL
(参考: https://stackoverflow.com/questions/41102299/unable-to-install-any-pip-module-module-object-has-no-attribute-cryptography)
4: 总结: 需要在对应的目录安装OpenSSL, 因为用pip install pyOpenSSL时总是用py35/pip 安装, 而py35已有pyOpenSSL.
本文来自博客园,作者:晴云孤魂,转载请注明原文链接:https://www.cnblogs.com/cnhack/articles/16970706.html

浙公网安备 33010602011771号