Python 使用PyInstaller时不支持SSH连接
我使用fs.sshfs通过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
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的错误。您可以在此处找到修复程序: