Comments (9)
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.
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.
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:
- Using Anaconda - my personal favorite.
- Downloading directly from python.org.
- 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.
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.
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.
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.
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.
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.
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)
- Object detection - Segfault after a large number of iterations
- available data sets in turicreate
- Mac M2 model.export_coreml('.mlmodel') Unable to export model HOT 1
- TuriCreate still doesn't work on M1 using rosetta terminal HOT 7
- While training object_detector in colab randomly Using CPU/GPU to create model.
- Trying to create a model on a larger dataset - Loss stuck at the same number and not moving, resulting model predictions detect nothing
- Support Python 3.9 HOT 1
- pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
- Simple Image Classification Model gives different confidence level (Between Coreml UI and iOS App)
- pip dependency conflicts: conda-repo-cli 1.0.20 requires nbformat==5.4.0, but you have nbformat 5.7.3 which is incompatible. HOT 1
- AttributeError: module 'numpy' has no attribute 'typeDict' HOT 1
- Cannot install and import TuriCreate HOT 1
- Columns and DataType Not Explicitly Set on line 611 of sgraph.py
- Error While Installing Turicreate to my Windows via WSL HOT 1
- Benzinga error
- when you planning run it on windows natively (not wsl)
- MacOS ,When install dydx-python ,encounter some ERRORS , how to solve the problem? A lot thanks.
- Can't run DreamBooth in Gcolab
- Converting sframe to csv
- TuriCreate: Human Activity Classifier Model Deployment and result on unseen test dataset
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from turicreate.