From 0cd1c7df5ddfed25a3ebb05c65e4202864aacb4a Mon Sep 17 00:00:00 2001 From: Mergen Nachin Date: Fri, 1 Aug 2025 17:50:07 -0400 Subject: [PATCH] Fix installation that causes torch conflict A package in requirements-examples.txt had a dependency on torchvision, and we ended up installing stable release from standard pypi package. And transitively we ended up installing stable torch and uninstalling torch library. --- install_requirements.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/install_requirements.py b/install_requirements.py index 978cc8a84b2..d52a0d19e73 100644 --- a/install_requirements.py +++ b/install_requirements.py @@ -142,19 +142,6 @@ def install_requirements(use_pytorch_nightly): def install_optional_example_requirements(use_pytorch_nightly): - print("Installing packages in requirements-examples.txt") - subprocess.run( - [ - sys.executable, - "-m", - "pip", - "install", - "-r", - "requirements-examples.txt", - ], - check=True, - ) - print("Installing torch domain libraries") DOMAIN_LIBRARIES = [ ( @@ -178,6 +165,19 @@ def install_optional_example_requirements(use_pytorch_nightly): check=True, ) + print("Installing packages in requirements-examples.txt") + subprocess.run( + [ + sys.executable, + "-m", + "pip", + "install", + "-r", + "requirements-examples.txt", + ], + check=True, + ) + # Prebuilt binaries for Intel-based macOS are no longer available on PyPI; users must compile from source. # PyTorch stopped building macOS x86_64 binaries since version 2.3.0 (January 2024).