Code for installing the Python Paramiko module under Windows _python

Source: Internet
Author: User
Tags win32
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 version of the zip compression software
7-zip:7z920.exe can be used to extract compressed files with lzma suffix names.
Address: http://www.7-zip.org/

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

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

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

Includes a few big steps:
1 according to the website description: Download the required software packages, EXE can be directly installed without the need for 7zip
2 Unpack all packages into one folder, for example: E:\MinGW. A file with a suffix name of Lzma, with a 7zip decompression.
3) Add E:\MinGW\bin to System environment variables

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:
Suppose the installation directory for Python is C:\Python25\Lib\distutils
Create a new Distutils.cfg file under the directory C:\Python25\Lib\distutils
Content:

Copy Code code as follows:

[Build]
Compiler=mingw32

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

Copy Code code as follows:

CD python25/scripts
Easy_install Paramiko

10. Take care of

Copy Code code as follows:

Import Paramiko

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.