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
Python 使用PyInstaller时不支持SSH连接_Python_Ssh_Pyinstaller_Fs_Paramiko - Fatal编程技术网

Python 使用PyInstaller时不支持SSH连接

Python 使用PyInstaller时不支持SSH连接,python,ssh,pyinstaller,fs,paramiko,Python,Ssh,Pyinstaller,Fs,Paramiko,我使用fs.sshfs通过SSH连接,如下所示 my_fs = fs.open_fs(u'ssh://myuser:mypassword@my.server.com:22/share/directory/') 当我使用PyCharm运行脚本时,它工作得很好。但是,当我使用PyInstaller创建EXE并运行可执行文件时,会出现以下错误: fs.opener.errors.UnsupportedProtocol: protocol 'ssh' is not supported 我认为Py

我使用fs.sshfs通过SSH连接,如下所示

  my_fs = fs.open_fs(u'ssh://myuser:mypassword@my.server.com:22/share/directory/')
当我使用PyCharm运行脚本时,它工作得很好。但是,当我使用PyInstaller创建EXE并运行可执行文件时,会出现以下错误:

fs.opener.errors.UnsupportedProtocol: protocol 'ssh' is not supported
我认为PyInstaller不包括fs.sshfs,我还尝试使用以下选项运行PyInstaller:

--nowindow --hidden-import=fs.sshfs 

错误仍然存在。

这似乎是PyInstaller的错误。您可以在此处找到修复程序: