我在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我试过使用Python3.5.0,但它仍然不起作用。
发布于 2019-05-28 13:24:17
我会在这里粘贴我对这个问题的答复:
Python包包括需要从源代码构建的C++,并且由于依赖关系也需要存在,所以有点困难。我们正在努力使Python安装体验更好,但与此同时,我从最新的大众主机上获得了您在Windows 101809上工作的情况。(自8.5.0以来,情况发生了很大变化,这就是pip上的情况)
1. [Install vcpkg ](https://github.com/Microsoft/vcpkg)
2. [Install dependencies with vcpkg](https://github.com/VowpalWabbit/vowpal_wabbit/wiki/Dependencies#experimental-cmake-build-system-on-windows)vcpkg安装zlib:x64-windows vcpkg安装boost-system:x64-windows vcpkg安装boost程序-选项:x64-windows vcpkg安装boost-test:x64-windows vcpkg安装boost-对齐:x64-windows vcpkg安装boost-foreach:x64-windows vcpkg安装boost-python:x64 windows vcpkg安装boost数学:x64 windows vcpkg安装boost-线程:x64 windows vcpkg安装boost
1. `cd <repo_root>/python`
2. `python setup.py --vcpkg-root C:\path\to\vcpkg install`
- Where `C:\path\to\vcpkg` is the root directory of where you cloned vcpkg
https://stackoverflow.com/questions/56306861
复制相似问题