The code to install the python paramiko module under Windows

  • 2020-04-02 09:44:03
  • OfStack

1. Install python   Windows version is good: python-2.5.1.msi

Install pycrypto Windows version no. : pycrypto-2.0.1. Win32-py2.5.exe
Address: (link: http://tmrc.mit.edu/mirror/twisted/Dependencies/Win/pycrypto-2.0.1.win32-py2.5.exe)

3. Install MySQL DB Module for Python 2.5
Address: (link: http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.2/MySQL-python-1.2.2.win32-py2.5.exe/download)

4. Install the open source version of zip  
7 - Zip: 7 z920. Exe. Can be used to unzip compressed files with the lzma suffix.
Address: (link: http://www.7-zip.org/)

5. Install SSL support, pyopenssl-0.8. winxp32-py2.5.msi
Address: (link: http://sourceforge.net/projects/pyopenssl/)

6. Install easy_install
Please refer to this article: (link: #)

7. Since this software needs to be compiled, you need to install the GCC compiler on Windows.
(link: http://www.mingw.org/wiki/Getting_Started)

There are several big steps:
1) according to the website: download the required software package,exe can be installed directly without 7zip
2) unzip all packages into one folder, for example:   E: \ \ MinGW. Files with the suffix lzma are unzipped with 7zip.
3) to E: \ MinGW \ bin   Add system environment variables

At this point, the installation of GCC on Windows is complete
At this point you can execute the input GCC command under the CMD command.

8. Modify the python installation file:
Assume that the python installation directory is   C: \ Python25 \ Lib \ distutils
In the directory   C: \ Python25 \ Lib \ distutils   Next, create a new distutils.cfg file
Content:


[build]
compiler=mingw32 

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


cd python25/scripts
easy_install paramiko

10. It


import paramiko


Related articles: