Skip to content

Instantly share code, notes, and snippets.

@ryankert01
Last active November 23, 2025 03:14
Show Gist options
  • Select an option

  • Save ryankert01/6175e8a6140934c794e2acec1bb955c6 to your computer and use it in GitHub Desktop.

Select an option

Save ryankert01/6175e8a6140934c794e2acec1bb955c6 to your computer and use it in GitHub Desktop.
conda remove --all -n ray-python -y
conda create -c conda-forge python=3.10 -n ray-python -y
conda activate ray-python
cd ~/github/ray
# For example, for Python 3.10:
pip install -U https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-3.0.0.dev0-cp310-cp310-manylinux2014_x86_64.whl
# This links all folders except "_private" and "dashboard" without user prompt.
python python/ray/setup-dev.py -y --skip _private dashboard
# Install test dep
pip install -c python/requirements_compiled.txt -r python/requirements/test-requirements.txt
# Ran simple test
# Directly calling `pytest -v ...` may lose import paths.
python -m pytest -v -s python/ray/tests/test_basic.py
conda remove --all -n ray -y
conda create -c conda-forge python=3.10 -n ray -y
conda activate ray
cd ~/github/ray
cd python/ray/dashboard/client
npm ci
npm run build
cd -
# Install Ray.
cd python/
# Install required dependencies.
pip install -r requirements.txt
# You may need to set the following two env vars if you have a macOS ARM64(M1) platform.
# See https://github.com/grpc/grpc/issues/25082 for more details.
# export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
# export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
pip install -e . --verbose # Add --user if you see a permission denied error.
# Install test reqirements
cd ~/github/ray
pip install -c python/requirements_compiled.txt -r python/requirements/test-requirements.txt
# Install pre-commit hook
pip install pre-commit
pre-commit install
# Test basic
python -m pytest -v -s python/ray/tests/test_basic.py
# Test namespace expressions
python -m pytest -v -s python/ray/data/tests/test_namespace_expressions.py
@ryankert01
Copy link
Author

get an error @ pip install -c python/requirements_compiled.txt -r python/requirements/test-requirements.txt

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
opentelemetry-exporter-prometheus 0.59b0 requires opentelemetry-sdk~=1.38.0, but you have opentelemetry-sdk 1.34.1 which is incompatible.
opentelemetry-proto 1.38.0 requires protobuf<7.0,>=5.0, but you have protobuf 4.25.8 which is incompatible.
textual 6.6.0 requires pygments<3.0.0,>=2.19.2, but you have pygments 2.18.0 which is incompatible.
textual 6.6.0 requires rich>=14.2.0, but you have rich 13.3.2 which is incompatible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment