Code for installing the Python Paramiko module under Windows

Source: Internet
Author: User
1. Install Python Windows version good: Python-2.5.1.msi

2. Install Pycrypto Windows version number: Pycrypto-2.0.1.win32-py2.5.exe
Address: 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: 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 Zip compression software
7-zip:7z920.exe, which can be used to decompress a compressed file with the suffix Lzma.
Address: http://www.7-zip.org/

5. Installation Support Ssl,pyopenssl-0.8.winxp32-py2.5.msi
Address: http://sourceforge.net/projects/pyopenssl/

6. Installing Easy_install
Please refer to this article: How to install Easy_install under Linux

7. Because this software needs to be compiled, the GCC compiler needs to be installed on Windows.
http://www.mingw.org/wiki/Getting_Started

There are several major steps:
1) Follow the instructions of the website: Download the required packages, EXE can be installed directly without the need for 7zip
2) Unzip all the packages into a folder, for example: E:\MinGW. Files with the suffix Lzma are extracted with 7zip.
3) Add E:\MinGW\bin to the system environment variable

At this point, the GCC installation on Windows is complete
You can then execute the input gcc execution command under the cmd command.

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

Copy the Code code as follows:


[Build]
Compiler=mingw32

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

Copy the Code code as follows:


CD python25/scripts
Easy_install Paramiko

10. Done

Copy the Code code as follows:


Import Paramiko
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.