gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 14:06:49 26 4
gpt4 key购买 nike

尝试将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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com