pip install 出现错误:无法找到 vcvarsall.bat [英] pip install gives error: Unable to find vcvarsall.bat

查看:23
本文介绍了pip install 出现错误:无法找到 vcvarsall.bat的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在带有 Python 2.7 的 Windows 8 上使用 pip install zipline 给了我错误:

Using pip install zipline on Windows 8 with Python 2.7 gives me the error:

Downloading/unpacking six (from python-dateutil==2.1->delorean->zipline[all])
  Running setup.py egg_info for package six

Installing collected packages: blist, pytz, requests, python-dateutil, six
  Running setup.py install for blist
    building '_blist' extension
    error: Unable to find vcvarsall.bat
    Complete output from command C:Python27python.exe -c "import setuptools;__
file__='c:\users\ThatsMe\appdata\local\temp\pip-build-ThatsMe\blist\setup.py';ex
ec(compile(open(__file__).read().replace('
', '
'), __file__, 'exec'))" inst
all --record c:usersThatsMeappdatalocal	emppip-xvoky2-recordinstall-record.tx
t --single-version-externally-managed:

running install

running build

running build_py

running build_ext

building '_blist' extension

error: Unable to find vcvarsall.bat

问题:如何解决错误?运行 pip install zipline[all] 给出同样的错误...

Question: How can the error be resolved? Running pip install zipline[all] gives the same error...

推荐答案

你可以使用 ol' good easy_install zipline 代替.

You could use ol' good easy_install zipline instead.

easy_install 不是 pip,但它的一个好处是能够下载和安装二进制包,这将使您无需准备 VC++.这当然依赖于二进制文件是为您的 Python 版本准备的假设.

easy_install isn't pip but one good aspect of it is the ability to download and install binary packages too, which would free you for the need having VC++ ready. This of course relies of the assumption that the binaries were prepared for your Python version.

更新:

是的,Pip 现在可以安装二进制文件了!

Yes, Pip can install binaries now!

有一种新的二进制 Python 存档格式 (wheel) 可以替代eggs".pip 已经支持轮子.这意味着只要有人为您的平台构建了轮子并将其上传到 PyPI,您就可以使用 pip 安装 zipline,而无需编译它.

There's a new binary Python archive format (wheel) that is supposed to replace "eggs". Wheels are already supported by pip. This means you'll be able to install zipline with pip without compiling it as soon as someone builds the wheel for your platform and uploads it to PyPI.

这篇关于pip install 出现错误:无法找到 vcvarsall.bat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆