Sunday, November 17, 2024
Google search engine
HomeLanguagesGuide to install TuriCreate in Python3.x

Guide to install TuriCreate in Python3.x

Before Installing first you need to what is actually Turi Create. So, Turi Create is an open-source toolset for creating Core ML models, for tasks such as image classification, object detection, style transfers, recommendations, and many more.

System Requirements 

  • Python 2.7, 3.5, 3.6, 3.7
  • At least 4gb of RAM
  • x86_64 Architecture.

Note: For installing purpose the recommended step is to first create a virtual environment in your system.

Installation

1. Ubuntu 
 Step 1 : Create a virtual environment and activate it. 

# Installing virtual environment using pip
pip install virtualenv

# Create a virtual environment
cd ~
virtual venv

# Activate your virtual environment
source ~/venv/bin/activate
 

installing a virtual environment using pip

Alternatively, if you are using Anaconda(https://www.anaconda.com/), you may use its virtual environment: 

# creating a virtual environment using Anaconda.
conda create -n  anaconda

Creating a virtual environment

# activating the virtual environment using anaconda
conda activate <virtual-environment-name>

Activating virtual environment

Step 2 : Install turicreate within your virtual environment 

(venv) pip install -U turicreate

Installing turicreate

2. Windows : In windows, you cannot directly install this package but you can use the Windows subsystem for Linux(WSL) to install turicreate in your system.

Step 1 : Install WSL

# Open powershell as Administrator and run the following command
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Note: When prompted restart your computer. 

Step 2 : After your PC has restarted launch the Microsoft Store and search for Linux. Select the Linux distribution of your choice. For this tutorial, we are using the Ubuntu 18.04 LTS distro.

Step 3 : From the distro’s page, select get, and install.
 

Step 4 : Launch the distro from the Start menu or by clicking the “launch” button on the Microsoft Store. 

Step 5 : You will have to initialize your new distro. Follow the prompts to set up a new Linux account (username and password). You will need your password later when installing packages using sudo.

set your username and password

Step 6 : Update and upgrade your distros packages using the following command.

sudo apt-get update && sudo apt-get upgrade

Output

Step 7 : Installing dependencies and setting up your environment. 

# Installing dependencies
sudo apt-get install -y libstdc++6 python-setuptools
sudo apt-get install python3-pip

# Installing virtualenv using pip3
sudo pip3 install virtualenv 

# Creating a virtual environment using virtualenv
virtualenv venv

# Activating the created virtual environment
source venv/bin/activate

Step 8 : Now Install turicreate in your virtual environment. 

(venv)pip3 install turicreate

Installing turicreate

Congratulation turicreate has been successfully installed in your system. Happy coding.

 

RELATED ARTICLES

Most Popular

Recent Comments