Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could there be a requirements.txt? #1

Closed
sck opened this issue Jun 22, 2020 · 3 comments
Closed

Could there be a requirements.txt? #1

sck opened this issue Jun 22, 2020 · 3 comments

Comments

@sck
Copy link

sck commented Jun 22, 2020

pip3 freeze > requirements.txt

Would make running the code in one's own python environment a lot easier!

@pfbrousseau
Copy link
Collaborator

I've added a requirements file. Note that it's much cleaner than the freeze you'll get, but these should be everything you need to run a base example.
If you face any problems installing, please comment here!

Make sure you install libomp If you get python3.7/site-packages/treelite_runtime/lib/libtreelite_runtime.dylib Reason: image not found

@sck
Copy link
Author

sck commented Jun 23, 2020

Thank you!

I can now run both:

python3.7 play.py connect_four gbdt-1 human-1 5.0

and

python3.7 train_bot.py connect_four gbdt 10

in a newly setup python environment, after running pip3.7 install -r requirements.txt

@cgreer
Copy link
Owner

cgreer commented Jun 23, 2020

Awesome! I didn't originally intend to share this so soon, so there will likely be issues/ugliness/etc. But if you're feeling brave I'm happy to answer questions and fix things when they come up until the code is more shareable/stable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants