# Elastalert on windows

**URL:** <https://discuss.elastic.co/t/elastalert-on-windows/113632>\
**Category:** Elasticsearch\
**Created:** [December 30, 2017, 1:07pm UTC](https://discuss.elastic.co/t/elastalert-on-windows/113632 "2017-12-30T13:07:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssi](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@ssi](https://discuss.elastic.co/u/ssi)\
**Post date:** [December 30, 2017, 1:07pm UTC](https://discuss.elastic.co/t/elastalert-on-windows/113632/1 "2017-12-30T13:07:18Z")

</div>

hi

i've installed all the needed python files etc but when i do a pip install elastalert i get this, I suspect this is because the python environment can not "see" the visual c ++ installation ?

how do i fix this

(EA2) C:\Program Files (x86)\Microsoft Visual C++ Build Tools\>pip install elastalert  
Collecting elastalert  
Collecting blist\>=1.3.6 (from elastalert)  
Using cached blist-1.3.6.tar.gz  
Collecting python-dateutil\>=2.6.0 (from elastalert)  
Using cached python\_dateutil-2.6.1-py2.py3-none-any.whl  
Collecting croniter\>=0.3.16 (from elastalert)  
Collecting boto3\>=1.4.4 (from elastalert)  
Using cached boto3-1.5.7-py2.py3-none-any.whl  
Collecting simplejson\>=3.10.0 (from elastalert)  
Using cached simplejson-3.13.2-cp27-cp27m-win\_amd64.whl  
Collecting mock\>=2.0.0 (from elastalert)  
Using cached mock-2.0.0-py2.py3-none-any.whl  
Collecting enum34; python\_version \< "3" (from cryptography\>=1.3.4-\>twilio\<6.1,\>=6.0.0-\>elastalert)  
Using cached enum34-1.1.6-py2-none-any.whl  
Collecting asn1crypto\>=0.21.0 (from cryptography\>=1.3.4-\>twilio\<6.1,\>=6.0.0-\>elastalert)  
Using cached asn1crypto-0.24.0-py2.py3-none-any.whl  
Collecting ipaddress; python\_version \< "3" (from cryptography\>=1.3.4-\>twilio\<6.1,\>=6.0.0-\>elastalert)  
Collecting pycparser (from cffi\>=1.7; platform\_python\_implementation != "PyPy"-\>cryptography\>=1.3.4-\>twilio\<6.1,\>=6.0.0-\>elastalert)  
Building wheels for collected packages: blist  
Running [setup.py](http://setup.py) bdist\_wheel for blist ... error  
Complete output from command C:\Users\XXXX\AppData\Local\conda\conda\envs\EA2\python.exe -u -c "import setuptools, tokenize; **file** ='c:\users\XXXXXX\appdata\local\temp\2\pip-build-_52i90\blist\[setup.py](http://setup.py)';f=getattr(tokenize, 'open', open)( **file** );code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, **file** , 'exec'))" bdist\_wheel -d c:\users\ssi~1.adm\appdata\local\temp\2\tmpqng6vgpip-wheel- --python-tag cp27:  
running bdist\_wheel  
running build  
running build\_py  
creating build  
creating build\lib.win-amd64-2.7  
creating build\lib.win-amd64-2.7\blist  
copying blist\_btuple.py -\> build\lib.win-amd64-2.7\blist  
copying blist\_sorteddict.py -\> build\lib.win-amd64-2.7\blist  
copying blist\_sortedlist.py -\> build\lib.win-amd64-2.7\blist  
copying blist\_init_.py -\> build\lib.win-amd64-2.7\blist  
running build\_ext  
building 'blist.\_blist' extension  
error: Microsoft Visual C++ 9.0 is required. Get it from [http://aka.ms/vcpython27](http://aka.ms/vcpython27)

* * *

Failed building wheel for blist  
Running [setup.py](http://setup.py) clean for blist  
Failed to build blist  
Installing collected packages: blist, six, python-dateutil, croniter, futures, docutils, jmespath, botocore, s3transfer, boto3, simplejson, funcsigs, pbr, mock, functools32, jsonschema, oauthlib, requests-oauthlib, argparse, ordereddict, requests-toolbelt, defusedxml, jira, elasticsearch, exotel, PyYAML, docopt, [stomp.py](http://stomp.py), envparse, configparser, texttable, pytz, pycparser, cffi, enum34, asn1crypto, ipaddress, cryptography, pyOpenSSL, PyJWT, twilio, PyStaticConfiguration, elastalert  
Running [setup.py](http://setup.py) install for blist ... error  
Complete output from command C:\Users\XXX\AppData\Local\conda\conda\envs\EA2\python.exe -u -c "import setuptools, tokenize; **file** ='c:\users\XXXX\appdata\local\temp\2\pip-build-_52i90\blist\[setup.py](http://setup.py)';f=getattr(tokenize, 'open', open)( **file** );code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, **file** , 'exec'))" install --record c:\users\ssi~1.adm\appdata\local\temp\2\pip-xbubnj-record\install-record.txt --single-version-externally-managed --compile:  
running install  
running build  
running build\_py  
creating build  
creating build\lib.win-amd64-2.7  
creating build\lib.win-amd64-2.7\blist  
copying blist\_btuple.py -\> build\lib.win-amd64-2.7\blist  
copying blist\_sorteddict.py -\> build\lib.win-amd64-2.7\blist  
copying blist\_sortedlist.py -\> build\lib.win-amd64-2.7\blist  
copying blist\_init_.py -\> build\lib.win-amd64-2.7\blist  
running build\_ext  
building 'blist.\_blist' extension  
error: Microsoft Visual C++ 9.0 is required. Get it from [http://aka.ms/vcpython27](http://aka.ms/vcpython27)

```
----------------------------------------

```

Command "C:\Users\xxxx\AppData\Local\conda\conda\envs\EA2\python.exe -u -c "import setuptools, tokenize; **file** ='c:\users\xxxx\appdata\local\temp\2\pip-build-\_52i90\blist\[setup.py](http://setup.py)';f=getattr(tokenize, 'open', open)( **file** );code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, **file** , 'exec'))" install --record c:\users\xxxxxx\appdata\local\temp\2\pip-xbubnj-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\xxxxx\appdata\local\temp\2\pip-build-\_52i90\blist\

(EA2) C:\Program Files (x86)\Microsoft Visual C++ Build Tools\>  
(EA2) C:\Program Files (x86)\Microsoft Visual C++ Build Tools\>

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [December 30, 2017, 7:48pm UTC](https://discuss.elastic.co/t/elastalert-on-windows/113632/2 "2017-12-30T19:48:14Z")

</div>

Hey there, this forum is for discussion around Elastic Stack components only, so you might not get much answer here for Elastalert. I suggest that you try a more general discussion forum like StackOverflow or maybe contact the authors directly.

---

<div class="post-metadata">

**Author:** ![ssi](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@ssi](https://discuss.elastic.co/u/ssi)\
**Post date:** [December 30, 2017, 8:02pm UTC](https://discuss.elastic.co/t/elastalert-on-windows/113632/3 "2017-12-30T20:02:04Z")

</div>

hi thanks i solved it, it was the install of visual c ++ for python2.7 you have to install it via command line for it to work i just dobbel clicked the msi package -go ahead and close the issue.

by the way i really appriciate all the work you and your collegues do in this forum keep up the good work if anyone of you are every in aarhus, DK drop me a line i'll buy the beer. happy new year!

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [December 30, 2017, 10:17pm UTC](https://discuss.elastic.co/t/elastalert-on-windows/113632/4 "2017-12-30T22:17:46Z")

</div>

Hey @ssi, thank you for the kind words and the beer! I also say the same if you ever come to Rio 😉

Happy New Year!!!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 27, 2018, 10:17pm UTC](https://discuss.elastic.co/t/elastalert-on-windows/113632/5 "2018-01-27T22:17:48Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
