Installation¶
Install the package¶
pip install teachable-machine
This also installs TensorFlow, which is large, so the first installation takes a while.
Use a virtual environment
It keeps TensorFlow and its dependencies separate from your other projects:
python -m venv .venv
.venv\Scripts\activate
pip install teachable-machine
python -m venv .venv
source .venv/bin/activate
pip install teachable-machine
The webcam examples also need OpenCV:
pip install opencv-python
Check the installation¶
python -c "from teachable_machine import TeachableMachine; print('Ready')"
TensorFlow may print some informational messages first.
Next step¶
Export your model, then follow the Quick Start.