I have installed the paramiko module. However, when I tried to import that module. I got the following error.
import paramiko
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-42-e77d47aa6e4a> in <module>()
----> 1 import paramiko
C:\Anaconda\lib\site-packages\paramiko\__init__.py in <module>()
28
29
---> 30 from paramiko.transport import SecurityOptions, Transport
31 from paramiko.client import SSHClient, MissingHostKeyPolicy, AutoAddPolicy, RejectPolicy, WarningPolicy
32 from paramiko.auth_handler import AuthHandler
C:\Anaconda\lib\site-packages\paramiko\transport.py in <module>()
30
31 import paramiko
---> 32 from paramiko import util
33 from paramiko.auth_handler import AuthHandler
34 from paramiko.ssh_gss import GSSAuth
ImportError: cannot import name util
Does anyone know how to resolve this issue?
Try with reinstalling it. In my case, it works.
pip uninstall paramiko
pip install paramiko --upgrade
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With