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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues on MacOS 11.0 #47978

Closed
RealTimLaz opened this issue Nov 15, 2020 · 30 comments
Closed

Issues on MacOS 11.0 #47978

RealTimLaz opened this issue Nov 15, 2020 · 30 comments
Assignees
Labels
has workaround module: binaries Anything related to official binaries that we release to users module: macos Mac OS related issues triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@RealTimLaz
Copy link

RealTimLaz commented Nov 15, 2020

馃悰 Bug

I cannot install Pytorch on MacOS 11 Big Sur. Pip continues to try and install version 0.1.2 and when trying to install a wheel from https://download.pytorch.org/whl/torch_stable.html it says ERROR: torch-1.7.0-cp38-none-macosx_10_9_x86_64.whl is not a supported wheel on this platform.

To Reproduce

Steps to reproduce the behaviour:

  1. Ensure MacOS version is > 11.0
  2. Install Python3.8 using brew
  3. Try and install torch through pip3 install torch or using a wheel available at https://download.pytorch.org/whl/torch_stable.html

Expected behavior

I expect to install the latest version of PyTorch on my system

Environment

  • PyTorch Version (e.g., 1.0): 1.7.0
  • OS (e.g., Linux): MacOS
  • How you installed PyTorch (conda, pip, source): pip
  • Python version: 3.8.6

Additional context

I understand similar behaviour occurs when trying to install Pytorch with python 3.9. I have made sure that I am using 3.8.6. I have also tested with 3.7.9 and get the same behaviour

cc @ezyang @gchanan @zou3519 @bdhirsh @seemethere @malfet @walterddr

@RealTimLaz
Copy link
Author

Also observed the same behaviour on 3.6.12. I'm going to stop different versions of Python now, because it's just making me sad 鈽癸笍

@rudaoshi
Copy link

I have the same issue

@zou3519 zou3519 added high priority module: binaries Anything related to official binaries that we release to users labels Nov 16, 2020
@zou3519
Copy link
Contributor

zou3519 commented Nov 16, 2020

Marking high-pri for user activity

@malfet
Copy link
Contributor

malfet commented Nov 16, 2020

@MasterObvious this is a new M1 based machine by any chance?

@ndahlquist
Copy link

@malfet I'm experiencing this issue on a 2017 MacBook Pro (Intel Core i7), so I don't think this issue is related to the new M1.

@malfet
Copy link
Contributor

malfet commented Nov 16, 2020

@ndahlquist can you share the exact command you are running and output you are seeing? Also, please run and share output of which pip3, which python3 and file $(which python3) commands on your system?

@ndahlquist
Copy link

nic@Nics-MBP ~> which pip3
/usr/local/bin/pip3
nic@Nics-MBP ~> which python3
/usr/local/bin/python3
nic@Nics-MBP ~> file (which python3)
/usr/local/bin/python3: Mach-O 64-bit executable x86_64
nic@Nics-MBP ~> pip3 install torch
Collecting torch
  Using cached torch-0.1.2.post2.tar.gz (128 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/local/opt/python@3.9/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-_lm07qrg/torch/setup.py'"'"'; __file__='"'"'/private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-_lm07qrg/torch/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-pip-egg-info-5f5t2noy
         cwd: /private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-_lm07qrg/torch/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-_lm07qrg/torch/setup.py", line 148, in <module>
        include_dirs += [np.get_include()]
    AttributeError: module 'numpy' has no attribute 'get_include'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
nic@Nics-MBP ~ [1]> pip3 install torch torchvision torchaudio
Collecting torch
  Using cached torch-0.1.2.post2.tar.gz (128 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/local/opt/python@3.9/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-iq0s9dsq/torch/setup.py'"'"'; __file__='"'"'/private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-iq0s9dsq/torch/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-pip-egg-info-yybd4mov
         cwd: /private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-iq0s9dsq/torch/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-iq0s9dsq/torch/setup.py", line 148, in <module>
        include_dirs += [np.get_include()]
    AttributeError: module 'numpy' has no attribute 'get_include'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

@malfet
Copy link
Contributor

malfet commented Nov 17, 2020

@ndahlquist, as you can see from the log, you are trying to download and install PyTorch for python3.9 runtime, which was not yet available at the time of 1.7 branch cut. We plan to add support for Python3.9 in the upcoming point release.

@ndahlquist
Copy link

Sorry my bad, forgot to switch back to Python 3.8. Updated results:

nic@Nics-MBP ~ [1]> which pip3
/usr/local/opt/python@3.8/bin/pip3
nic@Nics-MBP ~> which python3
/usr/local/opt/python@3.8/bin/python3
nic@Nics-MBP ~> file (which python3)
/usr/local/opt/python@3.8/bin/python3: Mach-O 64-bit executable x86_64
nic@Nics-MBP ~> pip3 install torch
Collecting torch
  Using cached torch-0.1.2.post2.tar.gz (128 kB)
Requirement already satisfied: pyyaml in ./Library/Python/3.8/lib/python/site-packages (from torch) (5.3.1)
Building wheels for collected packages: torch
  Building wheel for torch (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/local/opt/python@3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-i951_b99/torch/setup.py'"'"'; __file__='"'"'/private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-i951_b99/torch/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-wheel-b0g4bycx
       cwd: /private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-i951_b99/torch/
  Complete output (30 lines):
  running bdist_wheel
  running build
  running build_deps
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-i951_b99/torch/setup.py", line 225, in <module>
      setup(name="torch", version="0.1.2.post2",
    File "/usr/local/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
      return distutils.core.setup(**attrs)
    File "/usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/usr/local/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 290, in run
      self.run_command('build')
    File "/usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-i951_b99/torch/setup.py", line 51, in run
      from tools.nnwrap import generate_wrappers as generate_nn_wrappers
  ModuleNotFoundError: No module named 'tools.nnwrap'
  ----------------------------------------
  ERROR: Failed building wheel for torch
  Running setup.py clean for torch
  ERROR: Command errored out with exit status 1:
   command: /usr/local/opt/python@3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-i951_b99/torch/setup.py'"'"'; __file__='"'"'/private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-i951_b99/torch/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all
       cwd: /private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-i951_b99/torch
  Complete output (2 lines):
  running clean
  error: [Errno 2] No such file or directory: '.gitignore'
  ----------------------------------------
  ERROR: Failed cleaning build dir for torch
Failed to build torch
Installing collected packages: torch
    Running setup.py install for torch ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/local/opt/python@3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-i951_b99/torch/setup.py'"'"'; __file__='"'"'/private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-i951_b99/torch/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-record-u6wl7w_7/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/torch
         cwd: /private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-i951_b99/torch/
    Complete output (23 lines):
    running install
    running build_deps
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-i951_b99/torch/setup.py", line 225, in <module>
        setup(name="torch", version="0.1.2.post2",
      File "/usr/local/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
        return distutils.core.setup(**attrs)
      File "/usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-i951_b99/torch/setup.py", line 99, in run
        self.run_command('build_deps')
      File "/usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/Cellar/python@3.8/3.8.6_1/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-i951_b99/torch/setup.py", line 51, in run
        from tools.nnwrap import generate_wrappers as generate_nn_wrappers
    ModuleNotFoundError: No module named 'tools.nnwrap'
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/opt/python@3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-i951_b99/torch/setup.py'"'"'; __file__='"'"'/private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-install-i951_b99/torch/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/28/9f_19zhx6pd487cn1sh75lgc0000gn/T/pip-record-u6wl7w_7/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/torch Check the logs for full command output.

@MartinJohannesNilsen
Copy link

MartinJohannesNilsen commented Nov 17, 2020

Getting the same error as @ndahlquist when running the bundled Python 3.8.2 located in /usr/bin/python3 with Mac OS Big Sur 11.0.1. Have seen somewhere that I should run python3.8 -m pip install torch==1.7.0 torchvision==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html , but I don't want to place my packages in the location for python3.8 as this is another python-version I have on my system.
Why you may ask, well I have a project depending on a package using OpenGL, and this have not been backported to work for Big Sur with any other than the bundled pythonversion.

When running python -m pip install torch==1.7.0 torchvision==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html (I have python aliased to standard mac python3) I get the following errors:

ERROR: Could not find a version that satisfies the requirement torch==1.7.0 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch==1.7.0

Edit:
I ran the given command for python3.8 and that worked, will be moving the folders from one location to the other for now.

@DylanModesitt
Copy link

DylanModesitt commented Nov 20, 2020

This remains a problem for me. I can not reproduce it on a Mac where 3.9 was not installed with brew, but if 3.8 and 3.9 live together, python3.8 -m pip install torch does fail with the same error code as @ndahlquist provided.

@moredatarequired
Copy link

moredatarequired commented Nov 21, 2020

I'm getting the same error, trying to install 1.6.0 (though 1.7.0 also doesn't work for me). I have Python 3.9.0 installed with asdf, but I'm trying to install within a 3.8.6 environment. I've also tried 3.7.9, with the same result.

> which python
/Users/hugh/Library/Caches/pypoetry/virtualenvs/coach-notes-summarization-kqdvKdJ0-py3.8/bin/python

> python --version
Python 3.8.6

> python -m pip install torch==1.6.0
ERROR: Could not find a version that satisfies the requirement torch==1.6.0 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch==1.6.0

@andreabac3
Copy link

andreabac3 commented Nov 22, 2020

Up!
I had the same issue with Big Sur which is already reported here.

pip always try to install an older version of torch, but in any case I am not able to install it.

(I am on macbook pro 2017, Intel version of course)

@valkjsaaa
Copy link

I have a temporary solution:

pip3 install "pip<20.0" #pip-custom-platform don't support pip 20.0 yet.
pip3 install pip-custom-platform
pip-custom-platform install --platform macosx_10_9_x86_64 install torch

@r-salas
Copy link

r-salas commented Nov 23, 2020

Another temporary solution:

  1. Download wheel for your python version (https://pypi.org/project/torch/#files)
  2. Rename 10_9 version in your filename to 11_0. For example, for Python 3.7 rename torch-1.7.0-cp37-none-macosx_10_9_x86_64.whl to torch-1.7.0-cp37-none-macosx_11_0_x86_64.whl
  3. Install the wheel with pip install

@andreabac3
Copy link

I ran a test, a friend's 2016 macbook who upgraded from Catalina to Big Sur via the beta and is now on the stable version without performing a clean install of the operating system via the usb. He is able to install torch and the same goes for other packages.
I have had problems with other libraries too, so I assume the issue is pip related and not torch.

@hugcis
Copy link

hugcis commented Nov 24, 2020

I found this other similar issue with another package.

It would seem this is related to Mac OS version numbering (see here) and the latest pip versions not dealing with that properly.

A workaround is to execute export SYSTEM_VERSION_COMPAT=1 before running pip install, poetry add or anything else. This should fix the issue (also saw this answer here).

Quoting the article above:

In scripted languages which run within a shell environment, there鈥檚 an environmental variable which controls the version number given. Set SYSTEM_VERSION_COMPAT=1 and Big Sur returns 10.16; leave that variable unset, or SYSTEM_VERSION_COMPAT=0, and it returns 11.0.

@AthulMuralidhar
Copy link

A workaround is to execute export SYSTEM_VERSION_COMPAT=1 before running pip install, poetry add or anything else. This should fix the issue (also saw this answer here).

the fix did not work for me 馃槥 I still get the ModuleNotFoundError: error - please mention me for more info :)

@malfet malfet added the module: macos Mac OS related issues label Nov 26, 2020
@malfet malfet self-assigned this Nov 26, 2020
@malfet
Copy link
Contributor

malfet commented Nov 26, 2020

This sounds like a problem with PIP, which thinks wheels for 10_9 are not compatible with Big Sur (which is 11_0)

@malfet
Copy link
Contributor

malfet commented Nov 30, 2020

Please note, that the issue can be worked around by either renaming the .whl file or upgrading the pip. Before update:

% /usr/bin/python3 -mpip install torch-1.7.0-cp38-none-macosx_10_9_x86_64.whl 
Defaulting to user installation because normal site-packages is not writeable
ERROR: torch-1.7.0-cp38-none-macosx_10_9_x86_64.whl is not a supported wheel on this platform.
WARNING: You are using pip version 20.2; however, version 20.3 is available.
You should consider upgrading via the '/Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade pip' command.

Updating:

% /usr/bin/python3 -mpip install --upgrade pip
Defaulting to user installation because normal site-packages is not writeable
Collecting pip
  Downloading pip-20.3-py2.py3-none-any.whl (1.5 MB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 1.5 MB 4.5 MB/s 
Installing collected packages: pip
  WARNING: The scripts pip, pip3 and pip3.8 are installed in '/Users/malfet/Library/Python/3.8/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-20.3

After update:

% /usr/bin/python3 -mpip install torch-1.7.0-cp38-none-macosx_10_9_x86_64.whl
Defaulting to user installation because normal site-packages is not writeable
Processing ./torch-1.7.0-cp38-none-macosx_10_9_x86_64.whl
Requirement already satisfied: dataclasses in ./Library/Python/3.8/lib/python/site-packages (from torch==1.7.0) (0.6)
Requirement already satisfied: typing-extensions in ./Library/Python/3.8/lib/python/site-packages (from torch==1.7.0) (3.7.4.2)
Requirement already satisfied: numpy in ./Library/Python/3.8/lib/python/site-packages (from torch==1.7.0) (1.19.1)
Requirement already satisfied: future in ./Library/Python/3.8/lib/python/site-packages (from torch==1.7.0) (0.18.2)
Installing collected packages: torch
  WARNING: The scripts convert-caffe2-to-onnx and convert-onnx-to-caffe2 are installed in '/Users/malfet/Library/Python/3.8/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed torch-1.7.0

@malfet
Copy link
Contributor

malfet commented Dec 1, 2020

https://download.pytorch.org/whl/torch_stable.html has been updated to include copy of 10.9 packages marked as 11.0 compatible.

@malfet malfet added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Dec 1, 2020
@Joozty
Copy link

Joozty commented Mar 25, 2021

I am still unable to install torch.

Python 3.9.2
Pip 21.0.1
macOS Big Sur 11.2.3

Command pip install torch

Collecting torch
  Using cached torch-0.1.2.post2.tar.gz (128 kB)
Requirement already satisfied: pyyaml in /opt/homebrew/lib/python3.9/site-packages (from torch) (5.4.1)
WARNING: The candidate selected for download or install is a yanked version: 'torch' candidate (version 0.1.2.post2 at https://files.pythonhosted.org/packages/f8/02/880b468bd382dc79896eaecbeb8ce95e9c4b99a24902874a2cef0b562cea/torch-0.1.2.post2.tar.gz#sha256=a43e37f8f927c5b18f80cd163daaf6a1920edafcab5102e02e3e14bb97d9c874 (from https://pypi.org/simple/torch/))
Reason for being yanked: 0.1.2 is past it's support date and confuses users on unsupported platforms
Building wheels for collected packages: torch
  Building wheel for torch (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /opt/homebrew/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/h7/ryhqr4ws29363xlll8kbwyhr0000gn/T/pip-install-94zz7csq/torch_d7f2f53e58d845f283423dbfb4860c17/setup.py'"'"'; __file__='"'"'/private/var/folders/h7/ryhqr4ws29363xlll8kbwyhr0000gn/T/pip-install-94zz7csq/torch_d7f2f53e58d845f283423dbfb4860c17/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/h7/ryhqr4ws29363xlll8kbwyhr0000gn/T/pip-wheel-wlzns_6b
       cwd: /private/var/folders/h7/ryhqr4ws29363xlll8kbwyhr0000gn/T/pip-install-94zz7csq/torch_d7f2f53e58d845f283423dbfb4860c17/
  Complete output (30 lines):
  running bdist_wheel
  running build
  running build_deps
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/private/var/folders/h7/ryhqr4ws29363xlll8kbwyhr0000gn/T/pip-install-94zz7csq/torch_d7f2f53e58d845f283423dbfb4860c17/setup.py", line 225, in <module>
      setup(name="torch", version="0.1.2.post2",
    File "/opt/homebrew/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
      return distutils.core.setup(**attrs)
    File "/opt/homebrew/Cellar/python@3.9/3.9.2_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/opt/homebrew/Cellar/python@3.9/3.9.2_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/opt/homebrew/Cellar/python@3.9/3.9.2_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/opt/homebrew/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 299, in run
      self.run_command('build')
    File "/opt/homebrew/Cellar/python@3.9/3.9.2_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/opt/homebrew/Cellar/python@3.9/3.9.2_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/opt/homebrew/Cellar/python@3.9/3.9.2_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/opt/homebrew/Cellar/python@3.9/3.9.2_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/opt/homebrew/Cellar/python@3.9/3.9.2_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/private/var/folders/h7/ryhqr4ws29363xlll8kbwyhr0000gn/T/pip-install-94zz7csq/torch_d7f2f53e58d845f283423dbfb4860c17/setup.py", line 51, in run
      from tools.nnwrap import generate_wrappers as generate_nn_wrappers
  ModuleNotFoundError: No module named 'tools.nnwrap'
  ----------------------------------------
  ERROR: Failed building wheel for torch
  Running setup.py clean for torch
  ERROR: Command errored out with exit status 1:
   command: /opt/homebrew/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/h7/ryhqr4ws29363xlll8kbwyhr0000gn/T/pip-install-94zz7csq/torch_d7f2f53e58d845f283423dbfb4860c17/setup.py'"'"'; __file__='"'"'/private/var/folders/h7/ryhqr4ws29363xlll8kbwyhr0000gn/T/pip-install-94zz7csq/torch_d7f2f53e58d845f283423dbfb4860c17/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all
       cwd: /private/var/folders/h7/ryhqr4ws29363xlll8kbwyhr0000gn/T/pip-install-94zz7csq/torch_d7f2f53e58d845f283423dbfb4860c17
  Complete output (2 lines):
  running clean
  error: [Errno 2] No such file or directory: '.gitignore'
  ----------------------------------------
  ERROR: Failed cleaning build dir for torch
Failed to build torch
Installing collected packages: torch
    Running setup.py install for torch ... error
    ERROR: Command errored out with exit status 1:
     command: /opt/homebrew/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/h7/ryhqr4ws29363xlll8kbwyhr0000gn/T/pip-install-94zz7csq/torch_d7f2f53e58d845f283423dbfb4860c17/setup.py'"'"'; __file__='"'"'/private/var/folders/h7/ryhqr4ws29363xlll8kbwyhr0000gn/T/pip-install-94zz7csq/torch_d7f2f53e58d845f283423dbfb4860c17/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/h7/ryhqr4ws29363xlll8kbwyhr0000gn/T/pip-record-n7gpbciy/install-record.txt --single-version-externally-managed --compile --install-headers /opt/homebrew/include/python3.9/torch
         cwd: /private/var/folders/h7/ryhqr4ws29363xlll8kbwyhr0000gn/T/pip-install-94zz7csq/torch_d7f2f53e58d845f283423dbfb4860c17/
    Complete output (23 lines):
    running install
    running build_deps
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/h7/ryhqr4ws29363xlll8kbwyhr0000gn/T/pip-install-94zz7csq/torch_d7f2f53e58d845f283423dbfb4860c17/setup.py", line 225, in <module>
        setup(name="torch", version="0.1.2.post2",
      File "/opt/homebrew/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
        return distutils.core.setup(**attrs)
      File "/opt/homebrew/Cellar/python@3.9/3.9.2_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/opt/homebrew/Cellar/python@3.9/3.9.2_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/opt/homebrew/Cellar/python@3.9/3.9.2_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/private/var/folders/h7/ryhqr4ws29363xlll8kbwyhr0000gn/T/pip-install-94zz7csq/torch_d7f2f53e58d845f283423dbfb4860c17/setup.py", line 99, in run
        self.run_command('build_deps')
      File "/opt/homebrew/Cellar/python@3.9/3.9.2_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/opt/homebrew/Cellar/python@3.9/3.9.2_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/private/var/folders/h7/ryhqr4ws29363xlll8kbwyhr0000gn/T/pip-install-94zz7csq/torch_d7f2f53e58d845f283423dbfb4860c17/setup.py", line 51, in run
        from tools.nnwrap import generate_wrappers as generate_nn_wrappers
    ModuleNotFoundError: No module named 'tools.nnwrap'
    ----------------------------------------
ERROR: Command errored out with exit status 1: /opt/homebrew/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/h7/ryhqr4ws29363xlll8kbwyhr0000gn/T/pip-install-94zz7csq/torch_d7f2f53e58d845f283423dbfb4860c17/setup.py'"'"'; __file__='"'"'/private/var/folders/h7/ryhqr4ws29363xlll8kbwyhr0000gn/T/pip-install-94zz7csq/torch_d7f2f53e58d845f283423dbfb4860c17/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/h7/ryhqr4ws29363xlll8kbwyhr0000gn/T/pip-record-n7gpbciy/install-record.txt --single-version-externally-managed --compile --install-headers /opt/homebrew/include/python3.9/torch Check the logs for full command output.

pip install torch==1.8.0

ERROR: Could not find a version that satisfies the requirement torch==1.8.0
ERROR: No matching distribution found for torch==1.8.0

@malfet
Copy link
Contributor

malfet commented Mar 31, 2021

@Joozty can you try installing using PyTorch nightly channel, i.e.
pip install torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html

@Joozty
Copy link

Joozty commented Mar 31, 2021

@malfet Unfortunately I can see the same error, i.e. ModuleNotFoundError: No module named 'tools.nnwrap'

@malfet
Copy link
Contributor

malfet commented Mar 31, 2021

@Joozty can you share output of pip debug command as well as full log of pip install -v torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html

Small update: we are not publishing MacOS 11.0 arm64 wheels for Python 3.9 at the moment, investigating why

@Joozty
Copy link

Joozty commented Mar 31, 2021

Sure here it is:

(venv) joozty@Jozefs-MacBook-Pro Documents % pip debug --verbose
WARNING: This command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and options of this command may change without notice.
pip version: pip 21.0.1 from /Users/joozty/Documents/venv/lib/python3.9/site-packages/pip (python 3.9)
sys.version: 3.9.2 (default, Mar 26 2021, 15:28:17)
[Clang 12.0.0 (clang-1200.0.32.29)]
sys.executable: /Users/joozty/Documents/venv/bin/python
sys.getdefaultencoding: utf-8
sys.getfilesystemencoding: utf-8
locale.getpreferredencoding: UTF-8
sys.platform: darwin
sys.implementation:
  name: cpython
'cert' config value: Not specified
REQUESTS_CA_BUNDLE: None
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): /Users/joozty/Documents/venv/lib/python3.9/site-packages/pip/_vendor/certifi/cacert.pem
pip._vendor.DEBUNDLED: False
vendored library versions:
  appdirs==1.4.4
  CacheControl==0.12.6
  colorama==0.4.4
  contextlib2==0.6.0.post1 (Unable to locate actual module version, using vendor.txt specified version)
  distlib==0.3.1
  distro==1.5.0 (Unable to locate actual module version, using vendor.txt specified version)
  html5lib==1.1
  msgpack==1.0.2 (Unable to locate actual module version, using vendor.txt specified version)
  packaging==20.9
  pep517==0.9.1
  progress==1.5
  pyparsing==2.4.7
  requests==2.25.1
  certifi==2020.12.05
  chardet==4.0.0
  idna==2.10
  urllib3==1.26.2
  resolvelib==0.5.4
  retrying==1.3.3 (Unable to locate actual module version, using vendor.txt specified version)
  setuptools==44.0.0 (Unable to locate actual module version, using vendor.txt specified version)
  six==1.15.0
  toml==0.10.2
  webencodings==0.5.1 (Unable to locate actual module version, using vendor.txt specified version)
Compatible tags: 327
  cp39-cp39-macosx_11_0_arm64
  cp39-cp39-macosx_11_0_universal2
  cp39-cp39-macosx_10_16_universal2
  cp39-cp39-macosx_10_15_universal2
  cp39-cp39-macosx_10_14_universal2
  cp39-cp39-macosx_10_13_universal2
  cp39-cp39-macosx_10_12_universal2
  cp39-cp39-macosx_10_11_universal2
  cp39-cp39-macosx_10_10_universal2
  cp39-cp39-macosx_10_9_universal2
  cp39-cp39-macosx_10_8_universal2
  cp39-cp39-macosx_10_7_universal2
  cp39-cp39-macosx_10_6_universal2
  cp39-cp39-macosx_10_5_universal2
  cp39-cp39-macosx_10_4_universal2
  cp39-abi3-macosx_11_0_arm64
  cp39-abi3-macosx_11_0_universal2
  cp39-abi3-macosx_10_16_universal2
  cp39-abi3-macosx_10_15_universal2
  cp39-abi3-macosx_10_14_universal2
  cp39-abi3-macosx_10_13_universal2
  cp39-abi3-macosx_10_12_universal2
  cp39-abi3-macosx_10_11_universal2
  cp39-abi3-macosx_10_10_universal2
  cp39-abi3-macosx_10_9_universal2
  cp39-abi3-macosx_10_8_universal2
  cp39-abi3-macosx_10_7_universal2
  cp39-abi3-macosx_10_6_universal2
  cp39-abi3-macosx_10_5_universal2
  cp39-abi3-macosx_10_4_universal2
  cp39-none-macosx_11_0_arm64
  cp39-none-macosx_11_0_universal2
  cp39-none-macosx_10_16_universal2
  cp39-none-macosx_10_15_universal2
  cp39-none-macosx_10_14_universal2
  cp39-none-macosx_10_13_universal2
  cp39-none-macosx_10_12_universal2
  cp39-none-macosx_10_11_universal2
  cp39-none-macosx_10_10_universal2
  cp39-none-macosx_10_9_universal2
  cp39-none-macosx_10_8_universal2
  cp39-none-macosx_10_7_universal2
  cp39-none-macosx_10_6_universal2
  cp39-none-macosx_10_5_universal2
  cp39-none-macosx_10_4_universal2
  cp38-abi3-macosx_11_0_arm64
  cp38-abi3-macosx_11_0_universal2
  cp38-abi3-macosx_10_16_universal2
  cp38-abi3-macosx_10_15_universal2
  cp38-abi3-macosx_10_14_universal2
  cp38-abi3-macosx_10_13_universal2
  cp38-abi3-macosx_10_12_universal2
  cp38-abi3-macosx_10_11_universal2
  cp38-abi3-macosx_10_10_universal2
  cp38-abi3-macosx_10_9_universal2
  cp38-abi3-macosx_10_8_universal2
  cp38-abi3-macosx_10_7_universal2
  cp38-abi3-macosx_10_6_universal2
  cp38-abi3-macosx_10_5_universal2
  cp38-abi3-macosx_10_4_universal2
  cp37-abi3-macosx_11_0_arm64
  cp37-abi3-macosx_11_0_universal2
  cp37-abi3-macosx_10_16_universal2
  cp37-abi3-macosx_10_15_universal2
  cp37-abi3-macosx_10_14_universal2
  cp37-abi3-macosx_10_13_universal2
  cp37-abi3-macosx_10_12_universal2
  cp37-abi3-macosx_10_11_universal2
  cp37-abi3-macosx_10_10_universal2
  cp37-abi3-macosx_10_9_universal2
  cp37-abi3-macosx_10_8_universal2
  cp37-abi3-macosx_10_7_universal2
  cp37-abi3-macosx_10_6_universal2
  cp37-abi3-macosx_10_5_universal2
  cp37-abi3-macosx_10_4_universal2
  cp36-abi3-macosx_11_0_arm64
  cp36-abi3-macosx_11_0_universal2
  cp36-abi3-macosx_10_16_universal2
  cp36-abi3-macosx_10_15_universal2
  cp36-abi3-macosx_10_14_universal2
  cp36-abi3-macosx_10_13_universal2
  cp36-abi3-macosx_10_12_universal2
  cp36-abi3-macosx_10_11_universal2
  cp36-abi3-macosx_10_10_universal2
  cp36-abi3-macosx_10_9_universal2
  cp36-abi3-macosx_10_8_universal2
  cp36-abi3-macosx_10_7_universal2
  cp36-abi3-macosx_10_6_universal2
  cp36-abi3-macosx_10_5_universal2
  cp36-abi3-macosx_10_4_universal2
  cp35-abi3-macosx_11_0_arm64
  cp35-abi3-macosx_11_0_universal2
  cp35-abi3-macosx_10_16_universal2
  cp35-abi3-macosx_10_15_universal2
  cp35-abi3-macosx_10_14_universal2
  cp35-abi3-macosx_10_13_universal2
  cp35-abi3-macosx_10_12_universal2
  cp35-abi3-macosx_10_11_universal2
  cp35-abi3-macosx_10_10_universal2
  cp35-abi3-macosx_10_9_universal2
  cp35-abi3-macosx_10_8_universal2
  cp35-abi3-macosx_10_7_universal2
  cp35-abi3-macosx_10_6_universal2
  cp35-abi3-macosx_10_5_universal2
  cp35-abi3-macosx_10_4_universal2
  cp34-abi3-macosx_11_0_arm64
  cp34-abi3-macosx_11_0_universal2
  cp34-abi3-macosx_10_16_universal2
  cp34-abi3-macosx_10_15_universal2
  cp34-abi3-macosx_10_14_universal2
  cp34-abi3-macosx_10_13_universal2
  cp34-abi3-macosx_10_12_universal2
  cp34-abi3-macosx_10_11_universal2
  cp34-abi3-macosx_10_10_universal2
  cp34-abi3-macosx_10_9_universal2
  cp34-abi3-macosx_10_8_universal2
  cp34-abi3-macosx_10_7_universal2
  cp34-abi3-macosx_10_6_universal2
  cp34-abi3-macosx_10_5_universal2
  cp34-abi3-macosx_10_4_universal2
  cp33-abi3-macosx_11_0_arm64
  cp33-abi3-macosx_11_0_universal2
  cp33-abi3-macosx_10_16_universal2
  cp33-abi3-macosx_10_15_universal2
  cp33-abi3-macosx_10_14_universal2
  cp33-abi3-macosx_10_13_universal2
  cp33-abi3-macosx_10_12_universal2
  cp33-abi3-macosx_10_11_universal2
  cp33-abi3-macosx_10_10_universal2
  cp33-abi3-macosx_10_9_universal2
  cp33-abi3-macosx_10_8_universal2
  cp33-abi3-macosx_10_7_universal2
  cp33-abi3-macosx_10_6_universal2
  cp33-abi3-macosx_10_5_universal2
  cp33-abi3-macosx_10_4_universal2
  cp32-abi3-macosx_11_0_arm64
  cp32-abi3-macosx_11_0_universal2
  cp32-abi3-macosx_10_16_universal2
  cp32-abi3-macosx_10_15_universal2
  cp32-abi3-macosx_10_14_universal2
  cp32-abi3-macosx_10_13_universal2
  cp32-abi3-macosx_10_12_universal2
  cp32-abi3-macosx_10_11_universal2
  cp32-abi3-macosx_10_10_universal2
  cp32-abi3-macosx_10_9_universal2
  cp32-abi3-macosx_10_8_universal2
  cp32-abi3-macosx_10_7_universal2
  cp32-abi3-macosx_10_6_universal2
  cp32-abi3-macosx_10_5_universal2
  cp32-abi3-macosx_10_4_universal2
  py39-none-macosx_11_0_arm64
  py39-none-macosx_11_0_universal2
  py39-none-macosx_10_16_universal2
  py39-none-macosx_10_15_universal2
  py39-none-macosx_10_14_universal2
  py39-none-macosx_10_13_universal2
  py39-none-macosx_10_12_universal2
  py39-none-macosx_10_11_universal2
  py39-none-macosx_10_10_universal2
  py39-none-macosx_10_9_universal2
  py39-none-macosx_10_8_universal2
  py39-none-macosx_10_7_universal2
  py39-none-macosx_10_6_universal2
  py39-none-macosx_10_5_universal2
  py39-none-macosx_10_4_universal2
  py3-none-macosx_11_0_arm64
  py3-none-macosx_11_0_universal2
  py3-none-macosx_10_16_universal2
  py3-none-macosx_10_15_universal2
  py3-none-macosx_10_14_universal2
  py3-none-macosx_10_13_universal2
  py3-none-macosx_10_12_universal2
  py3-none-macosx_10_11_universal2
  py3-none-macosx_10_10_universal2
  py3-none-macosx_10_9_universal2
  py3-none-macosx_10_8_universal2
  py3-none-macosx_10_7_universal2
  py3-none-macosx_10_6_universal2
  py3-none-macosx_10_5_universal2
  py3-none-macosx_10_4_universal2
  py38-none-macosx_11_0_arm64
  py38-none-macosx_11_0_universal2
  py38-none-macosx_10_16_universal2
  py38-none-macosx_10_15_universal2
  py38-none-macosx_10_14_universal2
  py38-none-macosx_10_13_universal2
  py38-none-macosx_10_12_universal2
  py38-none-macosx_10_11_universal2
  py38-none-macosx_10_10_universal2
  py38-none-macosx_10_9_universal2
  py38-none-macosx_10_8_universal2
  py38-none-macosx_10_7_universal2
  py38-none-macosx_10_6_universal2
  py38-none-macosx_10_5_universal2
  py38-none-macosx_10_4_universal2
  py37-none-macosx_11_0_arm64
  py37-none-macosx_11_0_universal2
  py37-none-macosx_10_16_universal2
  py37-none-macosx_10_15_universal2
  py37-none-macosx_10_14_universal2
  py37-none-macosx_10_13_universal2
  py37-none-macosx_10_12_universal2
  py37-none-macosx_10_11_universal2
  py37-none-macosx_10_10_universal2
  py37-none-macosx_10_9_universal2
  py37-none-macosx_10_8_universal2
  py37-none-macosx_10_7_universal2
  py37-none-macosx_10_6_universal2
  py37-none-macosx_10_5_universal2
  py37-none-macosx_10_4_universal2
  py36-none-macosx_11_0_arm64
  py36-none-macosx_11_0_universal2
  py36-none-macosx_10_16_universal2
  py36-none-macosx_10_15_universal2
  py36-none-macosx_10_14_universal2
  py36-none-macosx_10_13_universal2
  py36-none-macosx_10_12_universal2
  py36-none-macosx_10_11_universal2
  py36-none-macosx_10_10_universal2
  py36-none-macosx_10_9_universal2
  py36-none-macosx_10_8_universal2
  py36-none-macosx_10_7_universal2
  py36-none-macosx_10_6_universal2
  py36-none-macosx_10_5_universal2
  py36-none-macosx_10_4_universal2
  py35-none-macosx_11_0_arm64
  py35-none-macosx_11_0_universal2
  py35-none-macosx_10_16_universal2
  py35-none-macosx_10_15_universal2
  py35-none-macosx_10_14_universal2
  py35-none-macosx_10_13_universal2
  py35-none-macosx_10_12_universal2
  py35-none-macosx_10_11_universal2
  py35-none-macosx_10_10_universal2
  py35-none-macosx_10_9_universal2
  py35-none-macosx_10_8_universal2
  py35-none-macosx_10_7_universal2
  py35-none-macosx_10_6_universal2
  py35-none-macosx_10_5_universal2
  py35-none-macosx_10_4_universal2
  py34-none-macosx_11_0_arm64
  py34-none-macosx_11_0_universal2
  py34-none-macosx_10_16_universal2
  py34-none-macosx_10_15_universal2
  py34-none-macosx_10_14_universal2
  py34-none-macosx_10_13_universal2
  py34-none-macosx_10_12_universal2
  py34-none-macosx_10_11_universal2
  py34-none-macosx_10_10_universal2
  py34-none-macosx_10_9_universal2
  py34-none-macosx_10_8_universal2
  py34-none-macosx_10_7_universal2
  py34-none-macosx_10_6_universal2
  py34-none-macosx_10_5_universal2
  py34-none-macosx_10_4_universal2
  py33-none-macosx_11_0_arm64
  py33-none-macosx_11_0_universal2
  py33-none-macosx_10_16_universal2
  py33-none-macosx_10_15_universal2
  py33-none-macosx_10_14_universal2
  py33-none-macosx_10_13_universal2
  py33-none-macosx_10_12_universal2
  py33-none-macosx_10_11_universal2
  py33-none-macosx_10_10_universal2
  py33-none-macosx_10_9_universal2
  py33-none-macosx_10_8_universal2
  py33-none-macosx_10_7_universal2
  py33-none-macosx_10_6_universal2
  py33-none-macosx_10_5_universal2
  py33-none-macosx_10_4_universal2
  py32-none-macosx_11_0_arm64
  py32-none-macosx_11_0_universal2
  py32-none-macosx_10_16_universal2
  py32-none-macosx_10_15_universal2
  py32-none-macosx_10_14_universal2
  py32-none-macosx_10_13_universal2
  py32-none-macosx_10_12_universal2
  py32-none-macosx_10_11_universal2
  py32-none-macosx_10_10_universal2
  py32-none-macosx_10_9_universal2
  py32-none-macosx_10_8_universal2
  py32-none-macosx_10_7_universal2
  py32-none-macosx_10_6_universal2
  py32-none-macosx_10_5_universal2
  py32-none-macosx_10_4_universal2
  py31-none-macosx_11_0_arm64
  py31-none-macosx_11_0_universal2
  py31-none-macosx_10_16_universal2
  py31-none-macosx_10_15_universal2
  py31-none-macosx_10_14_universal2
  py31-none-macosx_10_13_universal2
  py31-none-macosx_10_12_universal2
  py31-none-macosx_10_11_universal2
  py31-none-macosx_10_10_universal2
  py31-none-macosx_10_9_universal2
  py31-none-macosx_10_8_universal2
  py31-none-macosx_10_7_universal2
  py31-none-macosx_10_6_universal2
  py31-none-macosx_10_5_universal2
  py31-none-macosx_10_4_universal2
  py30-none-macosx_11_0_arm64
  py30-none-macosx_11_0_universal2
  py30-none-macosx_10_16_universal2
  py30-none-macosx_10_15_universal2
  py30-none-macosx_10_14_universal2
  py30-none-macosx_10_13_universal2
  py30-none-macosx_10_12_universal2
  py30-none-macosx_10_11_universal2
  py30-none-macosx_10_10_universal2
  py30-none-macosx_10_9_universal2
  py30-none-macosx_10_8_universal2
  py30-none-macosx_10_7_universal2
  py30-none-macosx_10_6_universal2
  py30-none-macosx_10_5_universal2
  py30-none-macosx_10_4_universal2
  cp39-none-any
  py39-none-any
  py3-none-any
  py38-none-any
  py37-none-any
  py36-none-any
  py35-none-any
  py34-none-any
  py33-none-any
  py32-none-any
  py31-none-any
  py30-none-any

Installation log is quite big so attaching it in file:

file.txt

@Joozty
Copy link

Joozty commented Apr 20, 2021

Is there any ETA for a fix? 馃檪

@maxsxu
Copy link

maxsxu commented Aug 11, 2021

Same Issue.

Environment

  • macOS 11.5.1
  • python 3.9.6
  • pip 21.1.3
  • pytorch 1.5.0

@hanpham32
Copy link

Same Issue.

Environment

  • macOS 11.5.1
  • python 3.9.6
  • pip 21.1.3
  • pytorch 1.5.0

Hello, did you resolve the issue?

@rgommers
Copy link
Collaborator

The original issues about pip not recognizing wheels marked for 10_9 were fixed in the most recent Pip releases.

Small update: we are not publishing MacOS 11.0 arm64 wheels for Python 3.9 at the moment, investigating why

PyTorch 1.10.0 has arm64 wheels for Python 3.8 and 3.9 now, from https://pypi.org/project/torch/1.10.0/#files

torch-1.10.0-cp38-none-macosx_11_0_arm64.whl
torch-1.10.0-cp39-none-macosx_11_0_arm64.whl

So this was fixed, and should now work even with older pip versions. So this is doubly-fixed with PyTorch 1.10.0, plus has a workaround (export SYSTEM_VERSION_COMPAT=1). We should be good here, closing.

Furthermore there was an issue in this thread related to numpy; numpy 1.21.4also hasarm64 11_0` wheels (see https://pypi.org/project/numpy/1.21.4/#files).

There are a host of issues combined in this thread, and all should be fixed by now. If anyone still sees an issue on macOS 11.0, please open a new issue (feel free to Cc me).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has workaround module: binaries Anything related to official binaries that we release to users module: macos Mac OS related issues 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