Skip to content

./install_executorch.sh fails on pip due to dependency conflicts #9445

Closed
@perheld

Description

@perheld

🐛 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

cc @larryliu0820 @jathu @lucylq

Metadata

Metadata

Assignees

Labels

module: build/installIssues related to the cmake and buck2 builds, and to installing ExecuTorch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions