mingw - python + import C++ coding help. Missing compiler_cxx fix for MSVCCompiler; Unable to find vcvarsall.bat -



mingw - python + import C++ coding help. Missing compiler_cxx fix for MSVCCompiler; Unable to find vcvarsall.bat -

i have scipy , numpy. installed mingw cygwin. added path o mingw environmental variables. when run python code shows error message.

*no module named msvccompiler in numpy.distutils; trying distutils missing compiler_cxx prepare msvccompiler*

traceback (most recent phone call last): file "c:\python27\jicrd_simulation.py", line 633, in <module> cprofile.run('run()','infoprof_c_old') file "c:\python27\lib\cprofile.py", line 29, in run prof = prof.run(statement) file "c:\python27\lib\cprofile.py", line 135, in run homecoming self.runctx(cmd, dict, dict) file "c:\python27\lib\cprofile.py", line 140, in runctx exec cmd in globals, locals file "<string>", line 1, in <module> file "c:\python27\jicrd_simulation.py", line 615, in run p,trace=search(g) file "c:\python27\jicrd_simulation.py", line 580, in search hits=compute_hits(g,pos,p) file "c:\python27\jicrd_simulation.py", line 299, in compute_hits source_counts = thetarange(g,g.source,move) file "c:\python27\jicrd_simulation.py", line 229, in thetarange headers=['<stdio.h>','<stdlib.h>','<math.h>','"'+g.path +'/comp.h"']) file "c:\python27\lib\site-packages\scipy\weave\inline_tools.py", line 355, in inline **kw) file "c:\python27\lib\site-packages\scipy\weave\inline_tools.py", line 482, in compile_function verbose=verbose, **kw) file "c:\python27\lib\site-packages\scipy\weave\ext_tools.py", line 367, in compile verbose = verbose, **kw) file "c:\python27\lib\site-packages\scipy\weave\build_tools.py", line 272, in build_extension setup(name = module_name, ext_modules = [ext],verbose=verb) file "c:\python27\lib\site-packages\numpy\distutils\core.py", line 186, in setup homecoming old_setup(**new_attr) file "c:\python27\lib\distutils\core.py", line 169, in setup raise systemexit, "error: " + str(msg) compileerror: error: unable find vcvarsall.bat

so should now? have msvcccompiler.

as you're talking c++ coding, assume want compile c/c++ extension. way got c extensions compile on win32 mingw explicitly append compiler:

python setup.py build_ext --compiler mingw32

if want compile win64, mingw seems not best choice. went tips here , here , got extensions compile vc++ 10 microsoft sdk.

python mingw scipy

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -