Zaber Launcher Tutorials
Zaber Motion Library
Sample Projects
Virtual DeviceDropdown icon
About3D Viewer
AccountDropdown icon
Sign InSign Up
Zaber Motion Library
Getting Started
Install
PythonC# (.NET)C++JavaScript and TypeScript (Node.js)MATLABJavaSwiftOctaveMATLAB (legacy)
Basic Example (Hello Zaber)
How-to GuidesAPI ReferenceSupportBinary Protocol (Legacy)
© 2026 Zaber Technologies Inc.

Python

There are different installation options depending on your Python development environment and preference:

  • Option 1: Command-line usage
  • Option 2: PyCharm IDE and virtual environment

Option 1: Command-line usage

First, select your operating system:

Make sure Python 3 is installed. You can verify this by entering the following command into a terminal:

Python 3 should be included in your standard Linux distribution. You can verify the proper installation by typing following command into a terminal:

py -3 --version
# Example output:
# Python 3.8.6
python3 --version
# Example output:
# Python 3.8.6

To use the library, the output of this command must indicate version 3.8 or higher.

The Python Package Installer, pip, must also be installed. It typically comes with the standard distribution of Python, but you can check that it’s installed by entering the following command into a terminal:

py -3 -m pip --version
# Example output:
# pip 21.3.1 from C:\Python38\lib\site-packages\pip (python 3.8)
pip3 --version
# Example output:
# pip 21.3.1 from /usr/local/lib/python3.8/dist-packages/pip (python 3.8)

The Python version in brackets should match the version of Python that’s installed, otherwise you will not be able to install the library.

To install the library, enter the following command into a terminal:

py -3 -m pip install --user zaber-motion

To install the library, first create a virtual environment to isolate the installation from the system Python. The following commands illustrate how to create a light-weight virtual environment using venv that comes with Python, in a subdirectory called .venv. First make sure you are in the project subdirectory. Then type the following command:

python3 -m venv .venv

Then activate the environment (note that you must activate the virtual environment every time you start a new shell):

source .venv/bin/activate

Any Python packages you install from this point onward will be inside the virtual environment of the specific project:

pip install zaber-motion

Now you may create a file named "example.py" (replace example with your desired file name) to start programming in Python. Continue the Getting Started guide by running the example code.

Troubleshooting

If your version is too low or the command fails to execute, you may need to install a newer version of Python 3.

If your version is too low or the command fails to execute, you may need to install packages using the terminal command:

sudo apt install python3 python3-pip

You may also need to update pip using the terminal command:

sudo -H pip3 install --upgrade pip

Updating

Before upgrading, determine which version of the library you currently have installed.

py -3 -m pip list

If you have installed the library in a virtual environment as per the installation instruction above, first activate the virtual environment:

source .venv/bin/activate

Then list the versions of all the packages installed:

pip list

To update to the latest version (9.0.1):

py -3 -m pip install --user --upgrade zaber-motion
pip install --upgrade zaber-motion

Option 2: PyCharm IDE and virtual environment

Make sure Python 3 is installed. The library supports version 3.8 or higher.

When creating a PyCharm project or a virtual environment, use the appropriate Python version. For example, in the image below the Base interpreter is Python version 3.8. If you cannot find an interpreter with the appropriate version, try reinstalling Python.

PyCharm project creation

After creating the project, you may verify the Python version by entering the following command into the PyCharm terminal:

python --version
# Example output:
# Python 3.8.6

To install the library, click on Python Packages tab at the bottom, search for zaber-motion and click the Install button.

Alternatively, enter the following command into the PyCharm terminal:

pip install zaber-motion

Now you may open the automatically created main.py file to start programming in Python. Continue the Getting Started guide by running the example code.

Updating

If you are already using the library and want to update to the latest version, you can do this by entering the following command into the PyCharm terminal:

pip install --upgrade zaber-motion

To determine which version of the library you currently have installed, enter the following command into the PyCharm terminal:

pip list