GithubHelp home page GithubHelp logo

Comments (9)

srikris avatar srikris commented on June 24, 2024

Are you on a python installed by homebrew? Currently, coremltools doesn't work with that Python version.
apple/coremltools#88

This could explain your current crash.

from turicreate.

amayers avatar amayers commented on June 24, 2024

Yes I am on Python installed by homebrew. How do I install a version of python that works with this project since it seems like it's so picky about the version & install method???

from turicreate.

igiloh avatar igiloh commented on June 24, 2024

Hi @amayers , thank you for taking interest in Turi Create!

The documentation issue have already been fixed, as you can see here.

As @srikris have mentioned - the CoreML team is aware of the problem with Homebrew.
There are several recommended ways to install python on macOS:

  1. Using Anaconda - my personal favorite.
  2. Downloading directly from python.org.
  3. Use the native python version that comes with macOS, which is located in /usr/bin/python.

All of which have been tested and work well with both turicreate and coremltools.
If you have any further questions about installing or using turicreate - please feel free to ask.

from turicreate.

amayers avatar amayers commented on June 24, 2024

Hi @igiloh I would have loved to use the native python version that ships with macOS, however Turi Create isn't even found when you try to use pip install -U turicreate on it. It wasn't until I installed 2.7.14 from Homebrew that Turi Create could be pip installed.

from turicreate.

igiloh avatar igiloh commented on June 24, 2024

Hi @amayers, thanks again for the further input.

I've just re-tested on a clean macOS10.12 and 10.13 machines - and on both I was able to successfully perform

pip install --upgrade pip
pip install -U turicreate

I was also able to create a model and export it to Core ML.

Which macOS version are you using?
Can you please print out the current pip version you're using, and the error you're getting?

from turicreate.

amayers avatar amayers commented on June 24, 2024

I just uninstalled python from homebrew leaving just the system python installed.

python --version
Python 3.6.3 :: Anaconda, Inc.

Then I recreated the virtual environment:

virtualenv egg_environment
Using base prefix '/anaconda3'
New python executable in /Users/amayers/Code/Side_Projects/egg_environment/bin/python
Installing setuptools, pip, wheel...done.
Andrews-13-MacBook-Pro:Side_Projects amayers$ source egg_environment/bin/activate
(egg_environment) Andrews-13-MacBook-Pro:Side_Projects amayers$ pip install -U turicreate
Collecting turicreate
  Could not find a version that satisfies the requirement turicreate (from versions: )
No matching distribution found for turicreate

I also tried again adding the pip install --upgrade pip line that wasn't in the instructions. It gave the output Requirement already up-to-date: pip in ./egg_environment/lib/python3.6/site-packages, and didn't fix the install error.

I'm running macOS 10.13.2 (17C88), and pip: pip 9.0.1 from /Users/amayers/Code/Side_Projects/egg_environment/lib/python3.6/site-packages (python 3.6)

from turicreate.

igiloh avatar igiloh commented on June 24, 2024

As mentioned in the documentation, turicreate only supports python 2.7 at the moment. Any python 2 version from 2.7.8 and up to the latest 2.7.14 (released 9/2017) should work.
Python 3 support is still an ongoing process, as you can see here: #2

macOS 10.13 comes natively with python 2.7.10, and should support the turicreate package out of the box.
If you do choose to install Anaconda (which again, I personally really enjoy) - please make sure to install the python 2.7 version, which is available here.

from turicreate.

srikris avatar srikris commented on June 24, 2024

For the macOS native python, it should look like this. (It seems you have another version of python installed)

$ python --version
Python 2.7.10
$ which python
/usr/bin/python

If you see /usr/local/bin/python for your python location then you probably have a mismatched version of Python and pip.

As @igiloh mentioned, your Python seems to be 3.6 which isn't yet supported (we will be fixing that soon). So Python 2.7 should work.

from turicreate.

amayers avatar amayers commented on June 24, 2024

After I installed Anaconda 2.7 it now works. But this is the first time I've done any python on this machine, and it had 3.6 on it. I guess some 3rd party app updated it?

from turicreate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.