VowpalWabbit / vowpal_wabbit

Vowpal Wabbit is a machine learning system which pushes the frontier of machine learning with techniques such as online, hashing, allreduce, reductions, learning2search, active, and interactive learning.
https://vowpalwabbit.org
Other
8.49k stars 1.93k forks source link

Problem while building #4538

Closed parthn2 closed 1 year ago

parthn2 commented 1 year ago

Description

A brief description of the error, missing documentation or what you would like added I was trying to build vw on my m1 mac and while I am running this command

cmake --install build
-- Install configuration: "Release"

I just got this output. Is it expected. If yes, what to do next? I am not able to import it while trying the tutorial though!


import vowpalwabbit
ModuleNotFoundError: No module named 'vowpalwabbit'

### Link to Documentation Page

> Where is the documentation in question?

<!--
Specific documentation page
-->

<!-- 
Your help makes our documentation better! We *deeply* appreciate your help in improving our documentation.
-->
rum1887 commented 1 year ago

can you describe all the steps you followed before this?

parthn2 commented 1 year ago

can you describe all the steps you followed before this?

I was following this tutorial https://github.com/VowpalWabbit/vowpal_wabbit/wiki/Building

These were the commands which I wrote after installing cmake and ninja:

git clone --recursive https://github.com/VowpalWabbit/vowpal_wabbit.git
cd vowpal_wabbit
cmake --preset=vcpkg-release -DBUILD_TESTING=OFF
cmake --build --preset=vcpkg-release
cmake --install build
parthn2 commented 1 year ago

did you add the build path to the source?

How to add it? if I need to export, then I get error for using cmake. It couldn't be found.

lalo commented 1 year ago

install using pip if you want to use it in a python script.

pip install vowpalwabbit

lalo commented 1 year ago

feel free to re-open with follow up questions.