Install paramiko on Windows

后端 未结 5 1014
别那么骄傲
别那么骄傲 2020-12-14 04:25

OK. I read installing paramiko on Windows.

All mentioned methods simply do not work.

Authors have different environments with different components/libraries

相关标签:
5条回答
  • 2020-12-14 04:51

    Also, I faced with the following errors like:

    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Python27-x86\include -IC:\Python27-x86\PC /Tcbuild\temp.win32-2.7\Release_openssl.c /Fobuild\temp.win32-2.7\Release\build\temp.win32-2.7\Release_openssl.obj

    _openssl.c

    build\temp.win32-2.7\Release_openssl.c(423) : fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory

    error: command 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe' failed with exit status 2

    missed this file: 'openssl/opensslv.h'

    it will be happens because while installation paramiko/cryptography/pyOpenSSL packages, they all needed distribution package of OpenSSL-Win32 with *.lib and headers files like: openssl\opensslv.h

    so, after installation appropriate OpenSSL app. version, took from here: http://code.x2go.org/releases/binary-win32/3rd-party/Win32OpenSSL/

    and copied all headers from C:\OpenSSL-Win32\include\openssl*.* to C:\Pyhton27\inclide*.*

    and copied all libs from C:\OpenSSL-win32\lib to C:\Python27\Lib*.*

    paramiko package was installed successfully. ! I hope it will be helpful somebody.:) good luck:)

    0 讨论(0)
  • 2020-12-14 04:52
    • For the first sequence you need to install 'ecdsa' with pip because paramiko compilation does not automatically resolve its dependencies (as your working solution)

    • The second failed, as stated already, because you did not install pycrypto before running pip install paramiko. I would recommend to use this option rather than installing from source to enable easier upgrade path using pip. Also pip is the easiest to install using their standalone install script: http://pip.readthedocs.org/en/latest/installing.html

    0 讨论(0)
  • 2020-12-14 04:54

    For windows users:

    1. Install Python 2.7.11

    2. Download and install pycrypto win-amd64-py2.7.exe

    3. Now open a command prompt. If you have installed python at the following location:

      c:\Python27 then change directory and go to Scripts directory.

    4. Now type the following command:

      pip install paramiko

    That's it, you have successfully installed Paramiko.

    0 讨论(0)
  • 2020-12-14 05:02

    For installing paramiko, Visual Basic Compiler is needed.

    First download it from Microcsoft: Microsoft Visual C++ Compiler for Python 2.7

    Open the paramiko directory and run python setup.py install . And it will download dependencies from internet; especially pycrypto and installation will be successful.

    0 讨论(0)
  • 2020-12-14 05:02

    You're missing the pycrypto dependency. pip is the easiest way:

    pip install pycrypto
    pip install paramiko
    

    Alternatively, you can install from source, with:

    easy_install ./
    

    (See: https://github.com/paramiko/paramiko)

    0 讨论(0)
提交回复
热议问题