Python Forum

Full Version: CompileError: Unable to find vcvarsall.bat
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I'm using python 2.7 with anaconda.
I try to run a file that uses the function weave.inline() however I get the error:
"CompileError: error: Unable to find vcvarsall.bat"
I've installed microsoft c++ comiler for python, but stiil keep getting the error.
(When i do search on the file "vcvarsall.bat" in the "C" directory, I don't get any results.)

The detailed error is:

Missing compiler_cxx fix for MSVCCompiler
Traceback (most recent call last):

File "C:\Users\Ron\Anaconda2\lib\site-packages\weave\inline_tools.py", line 366, in inline
**kw)

File "C:\Users\Ron\Anaconda2\lib\site-packages\weave\inline_tools.py", line 496, in compile_function
verbose=verbose, **kw)

File "C:\Users\Ron\Anaconda2\lib\site-packages\weave\ext_tools.py", line 373, in compile
verbose=verbose, **kw)

File "C:\Users\Ron\Anaconda2\lib\site-packages\weave\build_tools.py", line 279, in build_extension
setup(name=module_name, ext_modules=[ext],verbose=verb)

File "C:\Users\Ron\Anaconda2\lib\site-packages\numpy\distutils\core.py", line 169, in setup
return old_setup(**new_attr)

File "C:\Users\Ron\Anaconda2\lib\distutils\core.py", line 166, in setup
raise SystemExit, "error: " + str(msg)

CompileError: error: Unable to find vcvarsall.bat

Can anyone help me?
Thank, Ron
What command are you running?
Quote:I try to run a file that uses the function weave.inline() however I get the error:
That's weave.inline(),and scipy is of course included in Anaconda.
Can check for update:
G:\Anaconda3\Scripts
λ conda update scipy
Solving environment: done

## Package Plan ##

environment location: G:\Anaconda3

added / updated specs:
- scipy


The following packages will be downloaded:

package | build
---------------------------|-----------------
scipy-1.0.0 | py36h1260518_0 13.0 MB

The following packages will be UPDATED:

scipy: 0.19.1-py36h7565378_3 --> 1.0.0-py36h1260518_0

Proceed ([y]/n)? y


Downloading and Extracting Packages
scipy 1.0.0: ######################################################################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
As you see i use conda witch is Anaconda package manager.
Should not try to compile when use Anaconda,
should not try to compile all in Windows(has to know detailed stuff first).
Here my tutorial about Anaconda.