python - cryptography.hazmat.bindings._openssl导入ffi,lib ImportError:DLL加载失败:

标签 python ssh kernel spyder

尝试将spyder连接到远程内核时在Win10上出现以下错误:

Traceback (most recent call last):
  File "C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site-packages\paramiko\transport.py", line 2010, in run
    self._handler_table[ptype](self, m)
  File "C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site-packages\paramiko\transport.py", line 2126, in _negotiate_keys
    self.kex_engine.start_kex()
  File "C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site-packages\paramiko\kex_ecdh_nist.py", line 32, in start_kex
    self._generate_key_pair()
  File "C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site-packages\paramiko\kex_ecdh_nist.py", line 53, in _generate_key_pair
    self.P = ec.generate_private_key(self.curve, default_backend())
  File "C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site-packages\cryptography\hazmat\backends\__init__.py", line 15, in default_backend
    from cryptography.hazmat.backends.openssl.backend import backend
  File "C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site-packages\cryptography\hazmat\backends\openssl\__init__.py", line 7, in <module>
    from cryptography.hazmat.backends.openssl.backend import backend
  File "C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site-packages\cryptography\hazmat\backends\openssl\backend.py", line 62, in <module>
    from cryptography.hazmat.bindings.openssl import binding
  File "C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site-packages\cryptography\hazmat\bindings\openssl\binding.py", line 14, in <module>
    from cryptography.hazmat.bindings._openssl import ffi, lib
ImportError: DLL load failed: The specified procedure could not be found.

*** Failed to connect to 10.144.20.72:22: ImportError('DLL load failed: The specified procedure could not be found.')

最佳答案

由于我有同样的问题,所以我在这个问题上做了一些死灵法术:
我的解决方案更多的是一种替代方法。因为您提到了spyder,所以我认为您正在使用anaconda。我的问题似乎已经出现,使用pip将pysftp安装到anaconda环境中。我不得不卸载anaconda,恢复到原始的python环境,并且在那里工作没有任何问题。
由于我喜欢spyder,因此我通过pip将其安装到了该环境中……到目前为止

关于python - cryptography.hazmat.bindings._openssl导入ffi,lib ImportError:DLL加载失败:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54074161/

相关文章:

python - 找到 Pandas 时间序列之间的相关性

通过 SSH 连接 MySQL

assembly - 如何使用 assembly(8086) 将 USB 驱动器的扇区加载到内存中?

memory-management - kzalloc() - 一次调用的最大大小?

python: "with"用两个函数打开文件的语法

python - 了解 `conda install`( channel 和包)

python - rsync over ssh - 使用 Paramiko 在 Python 中创建的 channel

docker - nginx 的 gitlab 容器代理传递不适用于推送请求

ssh - 开始 screen 与ssh分开在一个无聊的盒子中,怎么办?

linux - 为什么这些特殊设备文件读取的最小页面大小字节?