使用pip install zipline在Windows 8上使用Python 2.7给我的错误:
pip install zipline
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]给出了同样的错误…
pip install zipline[all]
您可以改用ol’good easy_install zipline。
easy_install zipline
easy_install不是pip,而是它的一个好方面是也能够下载和安装二进制程序包,这使您无需准备VC ++。当然,这取决于二进制文件是为您的Python版本准备的。
easy_install
更新:
是的,Pip现在可以安装二进制文件!
有一种新的二进制Python存档格式(wheel),可以代替“鸡蛋”。车轮已由支撑pip。这意味着你将能够安装zipline与pip不尽快编译它有人建立了平台,并上传它的PyPI的车轮。
pip
zipline