2

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

3
  • possible duplicate of Testing Scipy; get "No module named msvccompiler in numpy.distutils; trying from distutils" - have you tried running from a VS command prompt? Commented Dec 4, 2014 at 8:32
  • According to the link for "imreg", you also need NumPy >= 1.5, SciPy >= 0.9, and py.test >= 2.0 installed. Commented Dec 4, 2014 at 9:37
  • I have tried the way "set VS90COMNTOOLS=%VS__110__COMNTOOLS%",but I still got the same problem.I am sure the version of NumPy >= 1.5, SciPy >= 0.9, and py.test >= 2.0 have been installed. Commented Dec 5, 2014 at 6:08

1 Answer 1

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?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.