在Macox中安装paramiko失败

时间:2018-10-14 16:58:31

标签: paramiko robotframework-sshlibrary

I am using robotframework and not able to import SSHLibrary.
    The installation doesnt show any error eventhough.
    I use High Sierra
    There is only one python version and its python2.7.12
    Below is the error:

在点点安装robotframework-sshlibrary ==>

Digitals-MacBook-Pro-2:paramiko-2.4.2 digitalhome $ python -c“ import SSHLibrary”     追溯(最近一次通话):     文件“”,第1行,位于     在第16行的“ /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/SSHLibrary/init.py”文件中     从.client导入SSHClient     在第21行的“ /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/SSHLibrary/client.py”文件中     从.pythonclient导入PythonSSHClient作为SSHClient     文件“ /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/SSHLibrary/pythonclient.py”,第23行,在     '导入Paramiko库失败。 '     ImportError:导入Paramiko库失败。确保已安装Paramiko。     Digitals-MacBook-Pro-2:paramiko-2.4.2 digitalhome $

Versions used:
Digitals-MacBook-Pro-2:paramiko-2.4.2 digitalhome$ which python
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
Digitals-MacBook-Pro-2:paramiko-2.4.2 digitalhome$ which pybot
/Library/Frameworks/Python.framework/Versions/2.7/bin/pybot
Digitals-MacBook-Pro-2:paramiko-2.4.2 digitalhome$ which pip
/Library/Frameworks/Python.framework/Versions/2.7/bin/pip
Digitals-MacBook-Pro-2:paramiko-2.4.2 digitalhome$

    I have tried almost all solutions in internet and not able to resolve this.
    Can someone help with this issue?

    I Also tried importing paramiko directly which yields below error:
>> import paramiko
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/paramiko/__init__.py", line 22, in <module>
    from paramiko.transport import SecurityOptions, Transport
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/paramiko/transport.py", line 37, in <module>
    from paramiko import util



    I have tried many solutions like installing paramiko from sources and downgrading SSHLibrary, installing PyCrypto but none of the solutions worked. 
    Can someone please help me on this.

0 个答案:

没有答案