Skip to content

Instantly share code, notes, and snippets.

@suenot
Created March 26, 2025 10:58
Show Gist options
  • Save suenot/461338741bd46caeb5fcf44d89c7f6dd to your computer and use it in GitHub Desktop.
Save suenot/461338741bd46caeb5fcf44d89c7f6dd to your computer and use it in GitHub Desktop.
uv
## UV Virtual Environment Setup Plan
1. Verify uv installation
uv --version # Should output 0.6.5
2. Create virtual environment with specified Python version
uv venv -p /opt/homebrew/bin/python3.11 .venv
* Creates environment in ./.venv directory
* Explicitly uses Python 3.11 interpreter
3. Activate environment
source .venv/bin/activate
4. Verify Python version in environment
python --version # Should show Python 3.11.x
5. Initialize development setup
touch requirements.txt
echo ".venv/" >> .gitignore
6. Confirm uv integration
uv pip install requests # Test package installation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment