Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install PyTorch on M1 Macos with Python 3.10.14 #128939

Open
niekvandepas opened this issue Jun 18, 2024 · 2 comments
Open

Unable to install PyTorch on M1 Macos with Python 3.10.14 #128939

niekvandepas opened this issue Jun 18, 2024 · 2 comments
Labels
module: binaries Anything related to official binaries that we release to users module: macos Mac OS related issues needs reproduction Someone else needs to try reproducing the issue given the instructions. No action needed from user triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@niekvandepas
Copy link

niekvandepas commented Jun 18, 2024

🐛 Describe the bug

I am unable to install pytorch on my M1 Macbook Air:

$ pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu

Looking in indexes: https://download.pytorch.org/whl/cpu
ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch

$ pip3 install torch
ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch

Versions

python ./collect_env.py
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.5 (arm64)
GCC version: Could not collect
Clang version: 12.0.1
CMake version: version 3.25.1
Libc version: N/A

Python version: 3.10.14 (main, Apr 25 2024, 10:24:02) [Clang 12.0.1 ] (64-bit runtime)
Python platform: macOS-10.16-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] numpy==1.26.4
[conda] Could not collect

cc @seemethere @malfet @osalpekar @atalman @albanD

@malfet malfet added needs reproduction Someone else needs to try reproducing the issue given the instructions. No action needed from user module: binaries Anything related to official binaries that we release to users module: macos Mac OS related issues labels Jun 18, 2024
@malfet
Copy link
Contributor

malfet commented Jun 18, 2024

@niekvandepas did you build Python from source? Also can you please run which pip3 and pip3 --version and share it's output there?

@malfet malfet added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Jun 18, 2024
@niekvandepas
Copy link
Author

@malfet I installed Python using Pyenv:

$ which pip3
/Users/niekvdpas/.pyenv/shims/pip3

$ pip3 --version
pip 24.0 from /Users/niekvdpas/.pyenv/versions/3.10.14/lib/python3.10/site-packages/pip (python 3.10)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: binaries Anything related to official binaries that we release to users module: macos Mac OS related issues needs reproduction Someone else needs to try reproducing the issue given the instructions. No action needed from user triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

No branches or pull requests

2 participants