jldbc / pybaseball

Pull current and historical baseball statistics using Python (Statcast, Baseball Reference, FanGraphs)
MIT License
1.23k stars 330 forks source link

Issue installing on Mac #234

Closed david1111039243 closed 2 years ago

david1111039243 commented 3 years ago

Hi there, this is a really beginner question :) I've been using pybaseball in Google colabs and now wanted to use it in a jupyter notebook.

I've tried installing on my Mac via terminal with pip3 install pybaseball==2.2.1 and it appears to have worked.

I then have an ipynb notebook and wanted to run the code:

import pybaseball as pyb
data = pyb.batting_stats(2019)

I get an error here and attached a screenshot. I can't tell if the issue is with the pybaseball install or the new notebook. Any thoughts? Thanks so much!

Screen Shot 2021-08-25 at 2 52 23 PM
schorrm commented 2 years ago

I would recommend installing based on the GitHub, that'll be a better bet than using the pip releases

schorrm commented 2 years ago

Which Python version is this?

david1111039243 commented 2 years ago

Tried re-installing and it worked. Cheers!