Skip to content

Add .python-version to pin Python 3.11 for uv compatibility - #218

Open
Jopaul07 wants to merge 1 commit into
wesm:3rd-editionfrom
Jopaul07:add-python-version-pin
Open

Add .python-version to pin Python 3.11 for uv compatibility#218
Jopaul07 wants to merge 1 commit into
wesm:3rd-editionfrom
Jopaul07:add-python-version-pin

Conversation

@Jopaul07

Copy link
Copy Markdown

The repo recommends uv as the primary setup method, but without a .python-version file, uv defaults to the system Python. On Python 3.12+, pandas==2.0.3 has no pre-built wheels on PyPI, causing uv to attempt a source build which fails with ModuleNotFoundError: No module named 'pkg_resources'.
Adding .python-version pinned to 3.11 ensures uv automatically selects the correct interpreter, matching the Python version already recommended in the Conda setup instructions.

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

Successfully merging this pull request may close these issues.

1 participant