Install from source
Source installations
Follow the instructions below to install FiftyOne from source and build the
App.
You'll need the following tools installed:
- Python (3.10 - 3.13)
- Node.js - on Linux, we recommend using
nvm to install an up-to-date version.
- Yarn - once Node.js is installed, you can
enable Yarn via
corepack enable
We strongly recommend that you install FiftyOne in a
virtual environment to
maintain a clean workspace.
If you are working in Google Colab,
skip to here.
First, clone the repository:
git clone https://github.com/voxel51/fiftyone
cd fiftyone
Then run the install script:
# Mac or Linux
bash install.sh
# Windows
.\install.bat
If you run into issues importing FiftyOne, you may need to add the path to the
cloned repository to your PYTHONPATH:
export PYTHONPATH=$PYTHONPATH:/path/to/fiftyone
Note that the install script adds to your nvm settings in your ~/.bashrc or
~/.bash_profile, which is needed for installing and building the App.
Upgrading your source installation
To upgrade an existing source installation to the bleeding edge, simply pull
the latest main branch and rerun the install script:
git checkout main
git pull
# Mac or Linux
bash install.sh
# Windows
.\install.bat
Rebuilding the App
When you pull in new changes to the App, you will need to rebuild it, which you
can do either by rerunning the install script or just running yarn build in
the ./app directory.
Developer installation
If you would like to
contribute to FiftyOne,
you should perform a developer installation using the -d flag of the install
script:
# Mac or Linux
bash install.sh -d
# Windows
.\install.bat -d
Although not required, developers typically prefer to configure their FiftyOne
installation to connect to a self-installed and managed instance of MongoDB,
which you can do by following
these simple steps.
Source installs in Google Colab
You can install from source in
Google Colab by running the following in a
cell and then restarting the runtime:
%%shell
git clone --depth 1 https://github.com/voxel51/fiftyone.git
cd fiftyone
# Mac or Linux
bash install.sh
# Windows
.\install.bat
Generating documentation
See the
docs guide for
information on building and contributing to the documentation.
Uninstallation
You can uninstall FiftyOne as follows:
pip uninstall fiftyone fiftyone-brain fiftyone-db
Prerequisites for beginners
System-specific setup
Follow the instructions for your operating system or environment to perform
basic system setup before installing FiftyOne.
If you're an experienced developer, you've likely already done this.
Linux
1. Install Python and other dependencies
These steps work on a clean install of Ubuntu Desktop 24.04, and should also
work on Ubuntu 24.04 and 22.04, and on Ubuntu Server:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python3-venv python3-dev build-essential git-all libgl1-mesa-dev
- On Linux, you will need at least the
openssl and libcurl packages
- On Debian-based distributions, you will need to install
libcurl4 or
libcurl3 instead of libcurl, depending on the age of your distribution
# Ubuntu
sudo apt install libcurl4 openssl
# Fedora
sudo dnf install libcurl openssl
2. Create and activate a virtual environment
python3 -m venv fiftyone_env
source fiftyone_env/bin/activate
3. Install FFmpeg (optional)
If you plan to work with video datasets, you'll need to install
FFmpeg:
sudo apt-get install ffmpeg
MacOS
1. Install Xcode Command Line Tools
xcode-select --install
2. Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
After running the above command, follow the instructions in your terminal to
complete the Homebrew installation.
3. Install Python
brew install python@3.10
brew install protobuf
4. Create and activate a virtual environment
python3 -m venv fiftyone_env
source fiftyone_env/bin/activate
5. Install FFmpeg (optional)
If you plan to work with video datasets, you'll need to install
FFmpeg: