InterDigitalInc / CompressAI

A PyTorch library and evaluation platform for end-to-end compression research
https://interdigitalinc.github.io/CompressAI/
BSD 3-Clause Clear License
1.15k stars 228 forks source link

Install on a M1 Mac #192

Closed MaximeTuab closed 1 year ago

MaximeTuab commented 1 year ago

Bug

Hi all, I am trying to install CompressAI on Mac M1, but I get the following error :

Installing build dependencies ... error error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [4 lines of output] Looking in indexes: https://pypi.python.org/simple/ Collecting setuptools>=42 ERROR: HTTP error 403 while getting https://files.pythonhosted.org/packages/ef/e3/29d6e1a07e8d90ace4a522d9689d03e833b67b50d1588e693eec15f26251/setuptools-65.6.3-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.7) ERROR: Could not install requirement setuptools>=42 from https://files.pythonhosted.org/packages/ef/e3/29d6e1a07e8d90ace4a522d9689d03e833b67b50d1588e693eec15f26251/setuptools-65.6.3-py3-none-any.whl because of HTTP error 403 Client Error: Forbidden for url: https://files.pythonhosted.org/packages/ef/e3/29d6e1a07e8d90ace4a522d9689d03e833b67b50d1588e693eec15f26251/setuptools-65.6.3-py3-none-any.whl?_sm_nck=1 for URL https://files.pythonhosted.org/packages/ef/e3/29d6e1a07e8d90ace4a522d9689d03e833b67b50d1588e693eec15f26251/setuptools-65.6.3-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.7) [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

To Reproduce

On a M1 MacBook Pro (2021) pip install compressai

Any users that did had this kind of issues? Thank a lot for this amazing work!!!

Environment

Below packages I was able to install (from pip list)

Package Version contourpy 1.0.6 cycler 0.11.0 fonttools 4.38.0 kiwisolver 1.4.4 matplotlib 3.6.2 numpy 1.24.1 packaging 22.0 pandas 1.5.2 Pillow 9.4.0 pip 22.3.1 pyparsing 3.0.9 python-dateutil 2.8.2 pytz 2022.7 seaborn 0.12.2 setuptools 65.6.3 six 1.16.0 wheel 0.38.4

MaximeTuab commented 1 year ago

Proxy issue, solved with a dedicated certificate. Thank you again!