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

Install fails on Python 3.13 #122

Open
nicholastaylor1214 opened this issue Nov 14, 2024 · 1 comment
Open

Install fails on Python 3.13 #122

nicholastaylor1214 opened this issue Nov 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@nicholastaylor1214
Copy link

Capture

getting this error why I try to install on python 3.13.0

@alecglen
Copy link
Member

Due to a breaking change in the pandas API that caused bugs in nfl_data_py, the latest release is intentionally constrained to numpy < 2.0 (See #98 (comment)). numpy v1 was maintained only up to Python 3.12, so unfortunately that is the expected result when attempting to install on Python 3.13.

Good news! nfl_data_py v1.0 will be released in a few weeks, which will include support for numpy v2.

Here are some workaround options in the meantime:

  • (recommended) Use Python 3.12 in a virtual environment. If you haven't used a virtual environment tool before, I recommend conda or pipenv. Learning to use one takes a bit of patience, but it will make your dev life SO much easier in the long run. I'm happy to help if you have questions getting started.

  • (if new to Python) Don't want to use a virtual environment and don't mind resetting your system's local Python config? You can downgrade your base Python installation.

  • If you are fluent with Docker, you can use the python:3.12 image as a super-isolated virtual environment.

  • If you really have a reason you need to use Python 3.13 right now, you can do so by installing the previous version of nfl_data_py that did not include the numpy version constraint. Go this route at your own risk; you will lose the bug fixes described in the 0.3.3 release notes and also possibly encounter weird issues like in #45.

@alecglen alecglen pinned this issue Nov 14, 2024
@alecglen alecglen changed the title nfl_data_py not properly installing Install fails on Python 3.13 Nov 14, 2024
@alecglen alecglen added the bug Something isn't working label Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants