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

Error while installing Turicreate in MacOS Big Sur 11.3.1 #3429

Closed ArraryChen closed 3 years ago

ArraryChen commented 3 years ago

MacOS Big Sur 11.3.1 The version of Python3 is 3.8.2 I have updated my pip and it shows Requirement already satisfied. but while Im installing Turicreate and then show error. I feel so confused about that for a long time. ;(

The information of error below: Defaulting to user installation because normal site-packages is not writeable Collecting turicreate Using cached turicreate-6.4.tar.gz (1.9 kB) Preparing metadata (setup.py) ... done Building wheels for collected packages: turicreate Building wheel for turicreate (setup.py) ... error ERROR: Command errored out with exit status 1: command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/c_/m27r_mn54qq53ld3dtfzqzmh0000gn/T/pip-install-zzn3yfdw/turicreate2180a0663ccc4091814a5575b36d1799/setup.py'"'"'; file='"'"'/private/var/folders/c/m27r_mn54qq53ld3dtfzqzmh0000gn/T/pip-install-zzn3yfdw/turicreate_2180a0663ccc4091814a5575b36d1799/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdistwheel -d /private/var/folders/c/m27r_mn54qq53ld3dtfzqzmh0000gn/T/pip-wheel-i09pps7 cwd: /private/var/folders/c/m27r_mn54qq53ld3dtfzqzmh0000gn/T/pip-install-zzn3yfdw/turicreate_2180a0663ccc4091814a5575b36d1799/ Complete output (31 lines): running bdist_wheel running build installing to build/bdist.macosx-10.14.6-arm64/wheel 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`

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

ERROR: Failed building wheel for turicreate Running setup.py clean for turicreate Failed to build turicreate Installing collected packages: turicreate Running setup.py install for turicreate ... error ERROR: Command errored out with exit status 1: command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/c_/m27r_mn54qq53ld3dtfzqzmh0000gn/T/pip-install-zzn3yfdw/turicreate2180a0663ccc4091814a5575b36d1799/setup.py'"'"'; file='"'"'/private/var/folders/c/m27r_mn54qq53ld3dtfzqzmh0000gn/T/pip-install-zzn3yfdw/turicreate2180a0663ccc4091814a5575b36d1799/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/c/m27rmn54qq53ld3dtfzqzmh0000gn/T/pip-record-07uqzkyy/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /Users/jianie/Library/Python/3.8/include/python3.8/turicreate cwd: /private/var/folders/c/m27r_mn54qq53ld3dtfzqzmh0000gn/T/pip-install-zzn3yfdw/turicreate_2180a0663ccc4091814a5575b36d1799/ Complete output (28 lines): 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`

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

----------------------------------------

ERROR: Command errored out with exit status 1: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/c_/m27r_mn54qq53ld3dtfzqzmh0000gn/T/pip-install-zzn3yfdw/turicreate2180a0663ccc4091814a5575b36d1799/setup.py'"'"'; file='"'"'/private/var/folders/c/m27r_mn54qq53ld3dtfzqzmh0000gn/T/pip-install-zzn3yfdw/turicreate2180a0663ccc4091814a5575b36d1799/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/c/m27r_mn54qq53ld3dtfzqzmh0000gn/T/pip-record-07uqzkyy/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /Users/jianie/Library/Python/3.8/include/python3.8/turicreate Check the logs for full command output.

If u could help me solve this error, I will be appreciated.

TobyRoseman commented 3 years ago

I'm not sure what is going on here. It looks like you are not using a virtual environment. I believe your issue is related to that. Using a virtual environment is recommend.

Follow the instruction in the Installation section of our README to install with a virtual environment.

ArraryChen commented 3 years ago

I'm not sure what is going on here. It looks like you are not using a virtual environment. I believe your issue is related to that. Using a virtual environment is recommend.

Follow the instruction in the Installation section of our README to install with a virtual environment.

Actually I have tried to use venv to install turicreate but also shows the same error.

TobyRoseman commented 3 years ago

Actually I have tried to use venv to install turicreate but also shows the same error.

Interesting. Try running pip install wheel then try running pip install -U turicreate.

ArraryChen commented 3 years ago

pip install -U turicreate.

as you see, it has the same error.

(venv) jianie@1999 ~ % pip install wheel Collecting wheel Using cached wheel-0.37.0-py2.py3-none-any.whl (35 kB) Installing collected packages: wheel Successfully installed wheel-0.37.0 (venv) jianie@1999 ~ % pip install -U turicreate Collecting turicreate Using cached turicreate-6.4.tar.gz (1.9 kB) Preparing metadata (setup.py) ... done Building wheels for collected packages: turicreate Building wheel for turicreate (setup.py) ... error ERROR: Command errored out with exit status 1: command: /Users/jianie/Desktop/MyFile/others/venv/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/c_/m27r_mn54qq53ld3dtfzqzmh0000gn/T/pip-install-3aor6bxi/turicreate60e5b849118e4e2e8dc1d65b7ba1522b/setup.py'"'"'; file='"'"'/private/var/folders/c/m27r_mn54qq53ld3dtfzqzmh0000gn/T/pip-install-3aor6bxi/turicreate_60e5b849118e4e2e8dc1d65b7ba1522b/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdistwheel -d /private/var/folders/c/m27rmn54qq53ld3dtfzqzmh0000gn/T/pip-wheel-u9alrpln cwd: /private/var/folders/c/m27r_mn54qq53ld3dtfzqzmh0000gn/T/pip-install-3aor6bxi/turicreate_60e5b849118e4e2e8dc1d65b7ba1522b/ Complete output (31 lines): running bdist_wheel running build installing to build/bdist.macosx-10.14.6-arm64/wheel 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`

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

ERROR: Failed building wheel for turicreate Running setup.py clean for turicreate Failed to build turicreate Installing collected packages: turicreate Running setup.py install for turicreate ... error ERROR: Command errored out with exit status 1: command: /Users/jianie/Desktop/MyFile/others/venv/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/c_/m27r_mn54qq53ld3dtfzqzmh0000gn/T/pip-install-3aor6bxi/turicreate60e5b849118e4e2e8dc1d65b7ba1522b/setup.py'"'"'; file='"'"'/private/var/folders/c/m27r_mn54qq53ld3dtfzqzmh0000gn/T/pip-install-3aor6bxi/turicreate60e5b849118e4e2e8dc1d65b7ba1522b/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/c/m27rmn54qq53ld3dtfzqzmh0000gn/T/pip-record-i9m3crq6/install-record.txt --single-version-externally-managed --compile --install-headers /Users/jianie/Desktop/MyFile/others/venv/include/site/python3.8/turicreate cwd: /private/var/folders/c/m27r_mn54qq53ld3dtfzqzmh0000gn/T/pip-install-3aor6bxi/turicreate_60e5b849118e4e2e8dc1d65b7ba1522b/ Complete output (28 lines): 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`

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

----------------------------------------

ERROR: Command errored out with exit status 1: /Users/jianie/Desktop/MyFile/others/venv/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/c_/m27r_mn54qq53ld3dtfzqzmh0000gn/T/pip-install-3aor6bxi/turicreate60e5b849118e4e2e8dc1d65b7ba1522b/setup.py'"'"'; file='"'"'/private/var/folders/c/m27r_mn54qq53ld3dtfzqzmh0000gn/T/pip-install-3aor6bxi/turicreate60e5b849118e4e2e8dc1d65b7ba1522b/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/c/m27r_mn54qq53ld3dtfzqzmh0000gn/T/pip-record-i9m3crq6/install-record.txt --single-version-externally-managed --compile --install-headers /Users/jianie/Desktop/MyFile/others/venv/include/site/python3.8/turicreate Check the logs for full command output.

TobyRoseman commented 3 years ago

Can you share the output of running the following from the command line? uname -a

ArraryChen commented 3 years ago

Can you share the output of running the following from the command line? uname -a

(venv) jianie@1999 ~ % uname -a Darwin 1999 20.4.0 Darwin Kernel Version 20.4.0: Thu Apr 22 21:46:41 PDT 2021; root:xnu-7195.101.2~1/RELEASE_ARM64_T8101 arm64

Enzo90910 commented 3 years ago

Looks related to #3372

TobyRoseman commented 3 years ago

@Enzo90910 is correct. TuriCreate does not have native support for M1.

@ArraryChen - If you want to use TuriCreate on an M1 machine, you need to use Rosetta.

Closing this as a duplicate of #3372.

ArraryChen commented 3 years ago

@Enzo90910 is correct. TuriCreate does not have native support for M1.

@ArraryChen - If you want to use TuriCreate on an M1 machine, you need to use Rosetta.

Closing this as a duplicate of #3372.

Sorry, I'm a beginner about turicreate. I'm currently learning ML in coursera, the class asks me to install turicreate so that I can use some packages to finish my assignment. u has mentioned about Rosetta. But I don't know how to use rosetta in installing turicreate.

I'm afraid I will bother you about that.

TobyRoseman commented 3 years ago

Open Finder and go to "Applications", then "Utilities". Make a copy of the "Terminal". Call your copy something like "Rosetta Terminal". Right click on it and select "Get Info". Click the checkbox which says "Open using Rosetta". Launch your Rosetta Terminal and install TuriCreate like you normally would.

ArraryChen commented 3 years ago

Open Finder and go to "Applications", then "Utilities". Make a copy of the "Terminal". Call your copy something like "Rosetta Terminal". Right click on it and select "Get Info". Click the checkbox which says "Open using Rosetta". Launch your Rosetta Terminal and install TuriCreate like you normally would.

it works, thank you very much.

tungxd96 commented 2 years ago

I'm still facing that error on M1 pro (MacOS Monterey 12.4) before/after trying Rosetta. Is there an alternative way?

gauravnitb90 commented 1 year ago

It wasn't working for me until I used Anaconda x86_64.

himbeles commented 1 year ago

Sidenote: you can use the last Python 3.8 Intel Installer https://www.python.org/ftp/python/3.8.10/python-3.8.10-macosx10.9.pkg to install a turicreate compatible version of Python via Rosetta.