I tried to install ephem module on my Windows 8.1 using
pip install ephem
but I get this error:
Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
I'm using Python 3.4.3 Please tell me exactly what I should do to make this work. I went through many solutions but it didn't help me.
These are a few:
Error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat)
Python Pip install Error: Unable to find vcvarsall.bat. Tried all solutions
I had the same problem and found the best solution here: http://www.devdungeon.com/content/fix-pip-install-unable-find-vcvarsallbat
It says:
So, go to the command window and run the following command:
I hope it helps other users.
I just did the following steps and was able to install the extension via pip. I'm working on Windows 8.1 x64.
Install latest Python 3 version using the x86 installer. (x64 is more difficult because VS doesn't include a compiler for x64, see second answer here)
Install Visual C++ Studio 2010 Express which can be downloaded from Microsoft (follow this link, the visual studio 2010 downloads are at the bottom of the page. You need to download the C++ release and i think you have to register at Microsoft to be able to download the software).
Run
py -3 -m pip install ephem
to istall ephem. (py -3 -m pip
calls pip from your python 3 installation, helpful if you also have python 2 installed)Worked for me without any problems.
Update 2017:
See the following link that contains information on compiling python on windows:
https://wiki.python.org/moin/WindowsCompilers