CompileError: Unable to find vcvarsall.bat - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Data Science (https://python-forum.io/forum-44.html) +--- Thread: CompileError: Unable to find vcvarsall.bat (/thread-7164.html) |
CompileError: Unable to find vcvarsall.bat - roni_im - Dec-24-2017 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 RE: CompileError: Unable to find vcvarsall.bat - snippsat - Dec-24-2017 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: doneAs 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. |