Skip to content

PyTorch 1.13 cannot be installed using poetry on Mac M1 #88049

Closed
DiffEqML/torchdyn
#175
@mawicks

Description

🐛 Describe the bug

This is an installation issue.

Poetry parses the endpoint at https://pypi.org/pypi/torch/1.13/json to get dependency metadata. The endpoint returns:

"requires_dist": [
      "typing-extensions",
      "nvidia-cuda-runtime-cu11 (==11.7.99)",
      "nvidia-cudnn-cu11 (==8.5.0.96)",
      "nvidia-cublas-cu11 (==11.10.3.66)",
      "nvidia-cuda-nvrtc-cu11 (==11.7.99)",
      "opt-einsum (>=3.3) ; extra == 'opt-einsum'"
    ],

However, the packages nvidia-cuda-runtime-cu11 , nvidia-cudnn-cu11, nvidia-cuda-nvrtc-cu11, and nvidia-cuda-nvrtc-cu11 do not exist for M1, and poetry update fails with

  Unable to find installation candidates for nvidia-cublas-cu11 (11.10.3.66)
  Unable to find installation candidates for nvidia-cuda-nvrtc-cu11 (11.7.99)
  Unable to find installation candidates for nvidia-cuda-runtime-cu11 (11.7.99)
  Unable to find installation candidates for nvidia-cudnn-cu11 (8.5.0.96)

This is specific to v1.13. This problem did not exist in v1.12.1

Versions

This probably isn't relevant until after it's installed, but I get:

Collecting environment information...
PyTorch version: 1.13.0
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 12.6 (arm64)
GCC version: Could not collect
Clang version: 14.0.0 (clang-1400.0.29.102)
CMake version: Could not collect
Libc version: N/A

Python version: 3.10.8 (main, Oct 13 2022, 09:48:40) [Clang 14.0.0 (clang-1400.0.29.102)] (64-bit runtime)
Python platform: macOS-12.6-arm64-arm-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] mypy==0.982
[pip3] mypy-extensions==0.4.3
[pip3] numpy==1.23.4
[pip3] torch==1.13.0
[conda] Could not collect

cc @ezyang @seemethere @malfet

Metadata

Assignees

No one assigned

    Labels

    module: binariesAnything related to official binaries that we release to usersmodule: regressionIt used to work, and now it doesn'ttriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions