Python安装包得到错误与msvccompiler [英] Python install package getting error with msvccompiler
问题描述
我已经在Windows7 64位安装python(x,y)2.7.6.1
并尝试安装一个包imreg(从此处)
python设置.py install
我收到此错误:
没有名为msvccompiler的模块在numpy.distutils尝试从distutils定制msvccompiler
我安装了visual studio 2008和Microsoft Visual C ++用于Python 2.7的编译器(来自此处)
但我不知道如何解决这个问题
这个问题通过这种方式:
安装了C ++编译器的MinGW。
在C:\ Python27 \Lib\distutils中创建一个文件distutils.cfg,并添加以下行:
[build]
编译器= mingw32
答案是来自如何在使用Pip安装Python包时使用MinGW的gcc编译器?
I have already install python(x,y)2.7.6.1 in Windows7 64bit
and try to install a package "imreg" (from here)
python setup.py install
I am getting this error:
no module named msvccompiler in numpy.distutils trying from distutils customize msvccompiler
I have installed visual studio 2008 and Microsoft Visual C++ Compiler for Python 2.7(from here)
but I don't know how to solve this problem
I solved this question by this way:
MinGW with C++ Compiler installed.
in " C:\Python27\Lib\distutils" create a file "distutils.cfg" and add these lines:
[build]
compiler=mingw32
the answer is from How to use MinGW's gcc compiler when installing Python package using Pip?
这篇关于Python安装包得到错误与msvccompiler的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!