SoFunction
Updated on 2024-10-30

Code to install python paramiko module on windows

1. Install python windows version well: python-2.5.

2. Install pycrypto windows version number: pycrypto-2.0.1.win32-py2.
Address:/mirror/twisted/Dependencies/Win/pycrypto-2.0.1.win32-py2.

3. Installing MySQL DB Module for Python 2.5
Address:/projects/mysql-python/files/mysql-python/1.2.2/MySQL-python-1.2.2.win32-py2./download

4. Install the open source version of the zip compression software
7-Zip:; can be used to decompress compressed files with lzma extension.
Address:http:///

5. Install ssl support, pyOpenSSL-0.8.winxp32-py2.
Address:/projects/pyopenssl/

6. install easy_install
Please refer to this article:How to install easy_install under linux

7, because this software needs to be compiled, so windows need to install gcc compiler.
/wiki/Getting_Started

It includes several big steps:
(1) in accordance with the instructions on the website: download the required software packages, exe can be installed directly without 7zip
2) Extract all packages to a folder, e.g. E:\MinGW. files with lzma extension, extract them with 7zip.
3) Add E:\MinGW\bin to the system environment variable

At this point, the installation of gcc on windows is complete
At this point it is possible to execute the command gcc execute by typing it in the cmd command.

8. Modify the python installation file:
Assuming that the python installation directory is C:\Python25\Lib\distutils
Create a new file under the directory C:\Python25\Lib\distutils
Content:

Copy Code The code is as follows.

[build]
compiler=mingw32

9. At this point, you can compile and install the paramiko module normally.

Copy Code The code is as follows.

cd python25/scripts
easy_install paramiko

10. Getting it done

Copy Code The code is as follows.

import paramiko