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

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

问题描述

在Windows 8和Python 2.7上使用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:\Python27\python.exe -c "import setuptools;__
file__='c:\\users\\ThatsMe\\appdata\\local\\temp\\pip-build-ThatsMe\\blist\\setup.py';ex
ec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" inst
all --record c:\users\ThatsMe\appdata\local\temp\pip-xvoky2-record\install-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 ),该格式可以替换鸡蛋". pip已支持车轮.这意味着只要有人为您的平台构建了轮子并将其上传到PyPI,您就可以将ziplinepip一起安装而无需编译.

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安装出现错误:无法找到vcvarsall.bat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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