首页 新闻 会员 周边 捐助

关于已安装好requests库但import requests仍出现问题求解

0
[待解决问题]

本人使用anaconda2,已经是装好requests库并尝试重新执行pip install requests -U重装但仍然存在下面的问题所以在这里寻求帮助解决,希望能得到指点,谢谢

附上报错的详述:

Python 3.5.4 |Continuum Analytics, Inc.| (default, Aug 14 2017, 13:25:49) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\Users\30309\Anaconda2\envs\py35\lib\site-packages\requests\__init__.py", line 84, in <module>
from urllib3.contrib import pyopenssl
File "D:\Users\30309\Anaconda2\envs\py35\lib\site-packages\urllib3\contrib\pyopenssl.py", line 46, in <module>
import OpenSSL.SSL
File "D:\Users\30309\Anaconda2\envs\py35\lib\site-packages\OpenSSL\__init__.py", line 8, in <module>
from OpenSSL import rand, crypto, SSL
File "D:\Users\30309\Anaconda2\envs\py35\lib\site-packages\OpenSSL\rand.py", line 12, in <module>
from OpenSSL._util import (
File "D:\Users\30309\Anaconda2\envs\py35\lib\site-packages\OpenSSL\_util.py", line 6, in <module>
from cryptography.hazmat.bindings.openssl.binding import Binding
File "D:\Users\30309\Anaconda2\envs\py35\lib\site-packages\cryptography\hazmat\bindings\openssl\binding.py", line 141, in <module>
Binding.init_static_locks()
File "D:\Users\30309\Anaconda2\envs\py35\lib\site-packages\cryptography\hazmat\bindings\openssl\binding.py", line 122, in init_static_locks
cls._ensure_ffi_initialized()
File "D:\Users\30309\Anaconda2\envs\py35\lib\site-packages\cryptography\hazmat\bindings\openssl\binding.py", line 109, in _ensure_ffi_initialized
cls.lib = build_conditional_library(lib, CONDITIONAL_NAMES)
File "D:\Users\30309\Anaconda2\envs\py35\lib\site-packages\cryptography\hazmat\bindings\openssl\binding.py", line 69, in build_conditional_library
if not getattr(lib, condition):
AttributeError: cffi library '_openssl' has no function, constant or global variable named 'Cryptography_HAS_ENGINE_CRYPTODEV'

诀别、泪的主页 诀别、泪 | 菜鸟二级 | 园豆:202
提问于:2018-05-06 18:41
< >
分享
所有回答(1)
0

建议用python3试试 别用anconda

shitou6 | 园豆:202 (菜鸟二级) | 2018-05-07 09:37

首先感谢你对问题的解答。我本地python3是可行的,只是想尝试下anaconda结果出了这个错,自己想了解下为什么

支持(0) 反对(0) 诀别、泪 | 园豆:202 (菜鸟二级) | 2018-05-08 00:38
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册