需要Microsoft Visual C ++ 10.0(无法找到vcvarsall.bat) [英] Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat)
问题描述
我尝试使用
pip install ephem
但我收到此错误:
Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
我正在使用Python 3.4.3 请确切地告诉我该如何进行这项工作.我经历了许多解决方案,但并没有帮助我.
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.
以下是一些:
错误:Microsoft需要Visual C ++ 10.0(无法找到vcvarsall.bat)
Python Pip安装错误:找不到vcvarsall.bat.尝试了所有解决方案
推荐答案
我只需执行以下步骤,便能够通过pip安装扩展.我正在使用Windows 8.1 x64.
I just did the following steps and was able to install the extension via pip. I'm working on Windows 8.1 x64.
-
使用x86安装程序安装最新的Python 3版本. (x64更加困难,因为VS不包括针对x64的编译器,请参见第二个答案安装可从Microsoft下载的Visual C ++ Studio 2010 Express(遵循此链接,Visual Studio 2010下载位于页面底部.您需要下载C ++版本,我认为您必须在Microsoft注册才能下载该版本.软件).
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).
运行
py -3 -m pip install ephem
来安装临时目录. (py -3 -m pip
从python 3安装中调用pip,如果您还安装了python 2,则很有用)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.
请参阅以下链接,其中包含有关在Windows上编译python的信息:
See the following link that contains information on compiling python on windows:
https://wiki.python.org/moin/WindowsCompilers
这篇关于需要Microsoft Visual C ++ 10.0(无法找到vcvarsall.bat)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!