py27 编译 pyd 问题请教
資深大佬 : oldbird 15
参照了这篇文章 http://yshblog.com/blog/117
主要就是 1 、安装微软为 Python 提供了专用的编译器 Microsoft Visual C++ Compiler for Python 2.7 2 、修改 python 安装目录下 Libdistutilsmsvc9compiler.py 文件,找到 get_build_version 方法直接 return 9.0 ;然后再找到 find_vcvarsall 方法直接返回 vcvarsall.bat 的路径
运行 python setup.py build_ext –inplace 后,总是提示
running build_ext
building ‘test’ extension
gcc -mno-cygwin -mdll -O -Wall -IC:WpyWPy27_32python-2.7.13include -IC:WpyWPy27_32python-2.7.13PC -c test.c -o buildtemp.win32-2.7Releasetest.o
error: command ‘gcc’ failed: No such file or directory
不知道哪里去找 gcc,必须要安装?
大佬有話說 (3)