executorch
executorch copied to clipboard
Installing v0.3.0 fails because torchvision 0.19.0 requires torch==2.4.1
🐛 Describe the bug
the issue
I'm getting the following dependency conflict error when I attempt to install executorch v0.3.0 on my arm64 macos system:
./install_requirements.sh --pybind xnnpack
ERROR: Cannot install executorch and executorch==0.3.0a0+7d77d78 because these package versions have conflicting dependencies.
The conflict is caused by:
executorch 0.3.0a0+7d77d78 depends on torch==2.4.0
torchaudio 2.4.0 depends on torch==2.4.0
torchvision 0.19.0 depends on torch==2.4.1
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
maybe torchvision 0.19.0 bumped the version of torch it requires? not sure.
steps to reproduce
pyenv shell miniconda3-latest
# below taken from https://pytorch.org/executorch/stable/getting-started-setup.html
conda create -yn executorch-v0.3.0 python=3.10.0
conda activate executorch-v0.3.0
git clone --branch v0.3.0 https://github.com/pytorch/executorch.git executorch-v0.3.0
cd executorch-v0.3.0
git submodule sync
git submodule update --init
./install_requirements.sh --pybind xnnpack
Versions
Collecting environment information... PyTorch version: N/A Is debug build: N/A CUDA used to build PyTorch: N/A ROCM used to build PyTorch: N/A
OS: macOS 14.4.1 (arm64) GCC version: Could not collect Clang version: 15.0.0 (clang-1500.3.9.4) CMake version: Could not collect Libc version: N/A
Python version: 3.10.0 (default, Mar 3 2022, 03:54:28) [Clang 12.0.0 ] (64-bit runtime) Python platform: macOS-14.4.1-arm64-arm-64bit Is CUDA available: N/A CUDA runtime version: Could not collect CUDA_MODULE_LOADING set to: N/A GPU models and configuration: Could not collect Nvidia driver version: Could not collect cuDNN version: Could not collect HIP runtime version: N/A MIOpen runtime version: N/A Is XNNPACK available: N/A
CPU: Apple M1
Versions of relevant libraries: [pip3] No relevant packages [conda] No relevant packages