1.安装mingw32
mingw32-base - Base Package
mingw32-gcc-g++ - C++ Compiler
mingw32-gcc-objc - Objective-C Compiler
2.安装git
3.下载libasm源码
4.checkoyt pydbg
git clone https://github.com/Fitblip/pydbg.git
5.build pydbg
python setup.py install
6.libdasm install
从VC++中打开命令行 Tools>Visual Studio Command Prompt
设置环境变量
set DISTUTILS_USE_SCK=1
set MSSdk=1
编译,安装
python setup.py build_ext –compiler=mingw32
python setup.py install
7.test
C:\Users\test\Desktop\pydbg64\libdasm-beta\pydasm>python
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:32:19) [MSC v.1500 32 bit (
Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pydbg
>>>