apple / turicreate

Turi Create simplifies the development of custom machine learning models.
BSD 3-Clause "New" or "Revised" License
11.2k stars 1.14k forks source link

Unable to install on M1 Mac with Python 3.8.12 #3442

Closed will09122000 closed 2 years ago

will09122000 commented 2 years ago

I get the following error when running pip install turicreate

Collecting turicreate
  Using cached turicreate-6.4.tar.gz (1.9 kB)
  Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for turicreate, since package 'wheel' is not installed.
Installing collected packages: turicreate
  Running setup.py install for turicreate ... error
  error: subprocess-exited-with-error

  × Running setup.py install for turicreate did not run successfully.
  │ exit code: 1
  ╰─> [28 lines of output]
      running install
              ==================================================================================
              TURICREATE ERROR

              If you see this message, pip install did not find an available binary package
              for your system.

              Supported Platforms:
                  * macOS 10.12+ x86_64.
                  * Linux x86_64 (including WSL on Windows 10).

              Support Python Versions:
                  * 2.7
                  * 3.5
                  * 3.6
                  * 3.7
                  * 3.8

              Another possible cause of this error is an outdated pip version. Try:
                  pip install -U pip

              ==================================================================================

      [end of output]

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

× Encountered error while trying to install package.
╰─> turicreate

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Python version: Python 3.8.12

Pip version: pip 22.0.3 from /Users/williamcoates/.pyenv/versions/3.8.10/lib/python3.8/site-packages/pip (python 3.8)

Currently installed packages:

Package         Version
--------------- -------
absl-py                 0.10.0
aiohttp                 3.8.1
aiosignal               1.2.0
astunparse              1.6.3
async-timeout           4.0.2
attr                    0.3.1
attrs                   21.4.0
blessed                 1.19.1
blinker                 1.4
brotlipy                0.7.0
cached-property         1.5.2
cachetools              4.2.4
certifi                 2021.10.8
cffi                    1.15.0
charset-normalizer      2.0.12
click                   8.0.4
colorama                0.4.4
conda                   4.11.0
conda-package-handling  1.7.3
coremltools             4.0b3
cryptography            36.0.1
cycler                  0.11.0
fonttools               4.29.1
frozenlist              1.3.0
gast                    0.4.0
google-auth             1.35.0
google-auth-oauthlib    0.4.6
google-pasta            0.2.0
grpcio                  1.44.0
h5py                    3.1.0
idna                    3.3
importlib-metadata      4.11.2
inquirer                2.9.1
joblib                  1.1.0
keras                   2.6.0
Keras-Preprocessing     1.1.2
kiwisolver              1.3.2
Markdown                3.3.6
matplotlib              3.5.1
mpmath                  1.2.1
multidict               6.0.2
numpy                   1.22.2
oauthlib                3.2.0
opt-einsum              3.3.0
packaging               21.3
pandas                  1.4.1
Pillow                  9.0.1
pip                     22.0.3
protobuf                3.19.4
pyasn1                  0.4.8
pyasn1-modules          0.2.7
pycosat                 0.6.3
pycparser               2.21
PyJWT                   2.3.0
pyOpenSSL               22.0.0
pyparsing               3.0.7
PySocks                 1.7.1
python-dateutil         2.8.2
python-editor           1.0.4
pytz                    2021.3
pyu2f                   0.1.5
readchar                3.0.5
requests                2.27.1
requests-oauthlib       1.3.1
rsa                     4.8
ruamel-yaml-conda       0.15.80
scikit-learn            1.0.2
scipy                   1.8.0
setuptools              60.9.3
six                     1.15.0
sympy                   1.9
tensorboard             2.6.0
tensorboard-data-server 0.6.0
tensorboard-plugin-wit  1.8.1
termcolor               1.1.0
threadpoolctl           3.1.0
tqdm                    4.62.3
typing-extensions       3.7.4.3
urllib3                 1.26.8
wcwidth                 0.2.5
Werkzeug                2.0.3
wheel                   0.35.1
wrapt                   1.12.1
yarl                    1.7.2
zipp                    3.7.0
TobyRoseman commented 2 years ago

TuriCreate does not have native M1 support. In order to use TuriCreate, you will need to use Rosetta.

Dup of #3429