Fix Python compatibility and dependency installation issues#13
Open
akshaymittal143 wants to merge 2 commits into
Open
Fix Python compatibility and dependency installation issues#13akshaymittal143 wants to merge 2 commits into
akshaymittal143 wants to merge 2 commits into
Conversation
- Fix Python 3.13 compatibility: Document Python 3.9-3.11 requirement - Fix torch installation: Install from PyTorch repository instead of PyPI - Fix NumPy compatibility: Constrain to numpy<2.0 for spacy/thinc compatibility - Improve setup.sh: Add Python version detection and proper dependency order - Update README: Add comprehensive installation instructions and troubleshooting - Add .python-version: Specify recommended Python version - Add CHANGELOG.md: Document all changes Fixes installation issues with: - blis==1.2.0 on Python 3.13+ - torch==2.4.1 not available for Python 3.11 - NumPy 2.x compatibility warnings with spacy/thinc Resolves: Installation failures on modern Python versions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix Python Compatibility and Dependency Installation Issues
🐛 Problem
The current installation fails on modern Python versions (3.12+) and has dependency compatibility issues:
blis==1.2.0requires Python <3.13, causing installation failurestorch==2.4.1is not available for Python 3.11 (latest is 2.2.2)✅ Solution
1. Updated
requirements.txttorch==2.4.1(installed separately from PyTorch repository)numpy==2.2.2tonumpy<2.0for compatibility2. Enhanced
setup.sh3. Updated
README.md4. Added
.python-version5. Added
CHANGELOG.md🧪 Testing
Tested on:
📋 Changes Summary
requirements.txtsetup.shREADME.md.python-versionCHANGELOG.md🚀 Installation Now Works
Users can now install successfully using:
Or manually:
pip install "numpy<2.0" pip install torch --index-url https://download.pytorch.org/whl/cpu pip install -r requirements.txt python -m spacy download en_core_web_sm🔍 Impact
📝 Notes
🔗 Related Issues
Fixes installation issues reported in:
Ready for review and testing!