Python install package getting error with msvccompiler

谁说胖子不能爱 提交于 2020-01-05 13:54:27

问题


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


回答1:


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?



来源:https://stackoverflow.com/questions/27289056/python-install-package-getting-error-with-msvccompiler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!