Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 加密术.hazmat.bindings.\u openssl导入ffi,lib导入错误:DLL加载失败:_Python_Ssh_Kernel_Spyder - Fatal编程技术网

Python 加密术.hazmat.bindings.\u openssl导入ffi,lib导入错误:DLL加载失败:

Python 加密术.hazmat.bindings.\u openssl导入ffi,lib导入错误:DLL加载失败:,python,ssh,kernel,spyder,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\a01073

尝试将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.')
回溯(最近一次呼叫最后一次):
文件“C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site packages\paramiko\transport.py”,第2010行,正在运行
self._handler_table[ptype](self,m)
文件“C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site packages\paramiko\transport.py”,第2126行,在密钥中
self.kex_engine.start_kex()
文件“C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site packages\paramiko\kex\u ecdh\u nist.py”,第32行,在start\u kex中
self.\u生成\u密钥\u对()
文件“C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site packages\paramiko\kex\u ecdh\u nist.py”,第53行,在生成密钥对中
self.P=ec.generate_private_key(self.curve,default_backend())
文件“C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site packages\cryptography\hazmat\backends\\uuuu init\uuuuu.py”,第15行,默认为\u backend
从cryptography.hazmat.backends.openssl.backend导入后端
文件“C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site packages\cryptography\hazmat\backends\openssl\\ uuuuuuuuuu init\uuuuuuuuuu.py”,第7行,in
从cryptography.hazmat.backends.openssl.backend导入后端
文件“C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site packages\cryptography\hazmat\backends\openssl\backend.py”,第62行,在
来自cryptography.hazmat.bindings.openssl导入绑定
文件“C:\Users\a010735\AppData\Local\Continuum\anaconda3\lib\site packages\cryptography\hazmat\bindings\openssl\binding.py”,第14行,在
来自cryptography.hazmat.bindings.\u openssl导入ffi,lib
ImportError:DLL加载失败:找不到指定的过程。
***未能连接到10.144.20.72:22:ImportError(“DLL加载失败:找不到指定的过程”。)

因为我也有同样的问题,我正在对这个问题做一些巫术: 我的解决方案更像是一种变通方法,而不是其他任何方法。既然你提到spyder,我想你在用anaconda。我的问题似乎是在使用pip将PYSTFP安装到anaconda环境中时出现的。我不得不卸载anaconda,恢复到我原来的python环境,在那里它工作没有任何问题。 因为我喜欢spyder,所以我通过pip将它安装到那个环境中……目前为止,它还可以工作