我在Windows 10上安装了python 3.7.0,但无法安装Vowpalwobbit。当我使用命令时:
pip install vowpalwabbit
我得到:
Building wheels for collected packages: vowpalwabbit
Building wheel for vowpalwabbit (setup.py) ... error
ERROR: Complete output from command 'c:\users\user\appdata\local\programs\python\python37-32\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-0tp3npd1\\vowpalwabbit\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\User\AppData\Local\Temp\pip-wheel-78e8xolx' --python-tag cp37:
ERROR: running bdist_wheel
...
File "C:\Users\User\AppData\Local\Temp\pip-install-0tp3npd1\vowpalwabbit\setup.py", line 115, in build_extension
raise Exception('Pre-built vw/python library for Windows is not supported for this python version')
Exception: Pre-built vw/python library for Windows is not supported for this python version
我尝试使用Python 3.5.0,但仍然无法正常工作。
答案 0 :(得分:1)
我将在这里粘贴response I gave on the issue:
Python软件包包含需要从源代码构建的C ++,并且由于依赖关系也需要存在而使它变得有点困难。我们正在努力改善Python的安装体验,但与此同时,这是我如何通过最新的vw master在Windows 10 1809上解决您的问题。 (自8.5.0开始,事情已经发生了很多变化)
我使用了CMake 3.13,它能够解决Boost 1.70的依赖性
vcpkg install zlib:x64-windows
vcpkg install boost-system:x64-windows
vcpkg install boost-program-options:x64-windows
vcpkg install boost-test:x64-windows
vcpkg install boost-align:x64-windows
vcpkg install boost-foreach:x64-windows
vcpkg install boost-python:x64-windows
vcpkg install boost-math:x64-windows
vcpkg install boost-thread:x64-windows
cd <repo_root>/python
python setup.py --vcpkg-root C:\path\to\vcpkg install
C:\path\to\vcpkg
是克隆vcpkg的根目录