Closed
Description
🐛 Describe the bug
Cloning and setting up a new executorch as such:
git clone ...
git submodule sync
git submodule update --init
python3 -m venv env
source env/bin/activate
pip install -U pip setuptools wheel cmake pytest-cov zstd
./install_executorch.sh
Results in a dependency problem:
INFO: pip is looking at multiple versions of torchvision to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install torch==2.7.0.dev20250311 and torchvision==0.22.0.dev20250311+cpu because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested torch==2.7.0.dev20250311
torchvision 0.22.0.dev20250311+cpu depends on torch==2.7.0.dev20250310
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip to attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
The only workaround I have right now is to change install_requirements.py
diff --git a/install_requirements.py b/install_requirements.py
index 9353dad18..e508e35e4 100644
--- a/install_requirements.py
+++ b/install_requirements.py
@@ -67,7 +67,7 @@ TORCH_NIGHTLY_URL = "https://download.pytorch.org/whl/nightly/cpu"
# NOTE: If a newly-fetched version of the executorch repo changes the value of
# NIGHTLY_VERSION, you should re-run this script to install the necessary
# package versions.
-NIGHTLY_VERSION = "dev20250311"
+NIGHTLY_VERSION = "dev20250310"
Versions
Running on latest greatest