无法从Eclipse导入OpenSSL

时间:2019-01-08 13:23:14

标签: python eclipse anaconda pyopenssl

我正在尝试导入OpenSSL,但出现此错误。我正在使用通过Anaconda安装的Eclipse,pydev和python 3.7:

Traceback (most recent call last):
  File "E:\Ruben\gb2s\eclipse\testLibraries\testLibraries.py", line 9, in <module>
    import OpenSSL 
  File "C:\Users\Ruben\Anaconda3\lib\site-packages\pyopenssl-18.0.0-py3.7.egg\OpenSSL\__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "C:\Users\Ruben\Anaconda3\lib\site-packages\pyopenssl-18.0.0-py3.7.egg\OpenSSL\crypto.py", line 16, in <module>
    from OpenSSL._util import (
  File "C:\Users\Ruben\Anaconda3\lib\site-packages\pyopenssl-18.0.0-py3.7.egg\OpenSSL\_util.py", line 6, in <module>
    from cryptography.hazmat.bindings.openssl.binding import Binding
  File "C:\Users\Ruben\Anaconda3\lib\site-packages\cryptography\hazmat\bindings\openssl\binding.py", line 172, in <module>
    Binding.init_static_locks()
  File "C:\Users\Ruben\Anaconda3\lib\site-packages\cryptography\hazmat\bindings\openssl\binding.py", line 142, in init_static_locks
    __import__("_ssl")
ImportError: DLL load failed: No se puede encontrar el módulo especificado. 

我能够从anaconda提示符下导入库,但不能使用Eclipse。有人可以帮助我吗?

谢谢。最好的祝福。

0 个答案:

没有答案