Shortcuts

    Start Locally

    Select your preferences and run the install command. Stable represents the most currently tested and supported version of PyPose. This should be suitable for many users. Please ensure that you have met the prerequisites below (e.g., numpy), depending on your package manager.

    PyPose Build
    Your OS
    Package
    Language
    Compute Platform
    Run this Command:
    PyPose Build
    Stable (0.2.0)
    Your OS
    Linux
    Mac
    Windows
    Pip
    Language
    Python
    Compute Platform
    CUDA 10.2
    CUDA 11.3
    Run this Command:
    pip install pypose

    Installing on macOS

    PyPose can be installed and used on macOS. Depending on your system and compute requirements, your experience with PyPose on a Mac may vary in terms of processing time. It is recommended, but not required, that your Mac have an NVIDIA GPU in order to harness the full power of PyPose’s CUDA support.

    Currently, CUDA support on macOS is only available by building PyPose from source

    Prerequisites

    macOS Version

    PyPose is supported on macOS 10.10 (Yosemite) or above.

    Python

    It is recommended that you use Python 3.7 or greater, which can be installed either through the Anaconda package manager (see below), Homebrew, or the Python website.

    Package Manager

    To install the PyPose binaries, you will need to use one of two supported package managers: Anaconda or pip. Anaconda is the recommended package manager as it will provide you all of the PyPose dependencies in one, sandboxed install, including Python.

    Anaconda

    To install Anaconda, you can download graphical installer or use the command-line installer. If you use the command-line installer, you can right-click on the installer link, select Copy Link Address, and then use the following commands:

    # The version of Anaconda may be different depending on when you are installing`
    curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
    sh Miniconda3-latest-MacOSX-x86_64.sh
    # and follow the prompts. The defaults are generally good.`
    

    pip

    Python 3

    If you installed Python via Homebrew or the Python website, pip was installed with it. If you installed Python 3.x, then you will be using the command pip3.

    Tip: If you want to use just the command pip, instead of pip3, you can symlink pip to the pip3 binary.

    Installation

    pip

    To install PyPose via pip, use one of the following command

    # Python 3.x
    pip install pypose
    

    Verification

    To ensure that PyPose was installed correctly, we can verify the installation by running sample PyPose code. Here we will construct a randomly initialized tensor.

    >>> import torch, pypose as pp
    
    >>> # A random so(3) LieTensor
    >>> r = pp.randn_so3(2, requires_grad=True)
        so3Type LieTensor:
        tensor([[ 0.1606,  0.0232, -1.5516],
                [-0.0807, -0.7184, -0.1102]], requires_grad=True)
    

    Building from source

    For the majority of PyPose users, installing from a pre-built binary via a package manager will provide the best experience. However, there are times when you may want to install the bleeding edge PyPose code, whether for testing or actual development on the PyPose core.

    You will also need to build from source if you want CUDA support.

    Prerequisites

    1. Install Anaconda
    2. Install CUDA, if your machine has a CUDA-enabled GPU.
    3. Install from source.

    You can verify the installation as described above.

    Installing on Linux

    PyPose can be installed and used on various Linux distributions. Depending on your system and compute requirements, your experience with PyPose on Linux may vary in terms of processing time. It is recommended, but not required, that your Linux system has an NVIDIA GPU in order to harness the full power of PyPose’s CUDA support.

    Prerequisites

    Python

    Python 3.7 or greater is generally installed by default on any of our supported Linux distributions, which meets our recommendation.

    Tip: By default, you will have to use the command python3 to run Python. If you want to use just the command python, instead of python3, you can symlink python to the python3 binary.

    However, if you want to install another version, there are multiple ways:

    If you decide to use APT, you can run the following command to install it:

    sudo apt install python
    

    It is recommended that you use Python 3.6, 3.7 or 3.8, which can be installed via any of the mechanisms above .

    Package Manager

    To install the PyPose binaries, you will need to use one of two supported package managers: Anaconda or pip.

    pip

    Python 3

    While Python 3.x is installed by default on Linux, pip is not installed by default.

    sudo apt install python3-pip
    

    Tip: If you want to use just the command pip, instead of pip3, you can symlink pip to the pip3 binary.

    Installation

    pip

    No CUDA

    To install PyPose via pip, and do not have a CUDA-capable system or do not require CUDA, in the above selector, choose OS: Linux, Package: Pip and CUDA: None. Then, run the command that is presented to you.

    With CUDA

    To install PyPose via pip, and do have a CUDA-capable system, in the above selector, choose OS: Linux, Package: Pip and the CUDA version suited to your machine. Often, the latest CUDA version is better. Then, run the command that is presented to you.

    Verification

    To ensure that PyPose was installed correctly, we can verify the installation by running sample PyPose code. Here we will construct a randomly initialized tensor.

    >>> import torch, pypose as pp
    
    >>> # A random so(3) LieTensor
    >>> r = pp.randn_so3(2, requires_grad=True)
        so3Type LieTensor:
        tensor([[ 0.1606,  0.0232, -1.5516],
                [-0.0807, -0.7184, -0.1102]], requires_grad=True)
    

    Additionally, to check if your GPU driver and CUDA is enabled and accessible by PyPose, run the following commands to return whether or not the CUDA driver is enabled:

    import torch
    torch.cuda.is_available()
    

    Building from source

    For the majority of PyPose users, installing from a pre-built binary via a package manager will provide the best experience. However, there are times when you may want to install the bleeding edge PyPose code, whether for testing or actual development on the PyPose core. To install the latest PyPose code, you will need to build PyPose from source.

    Installing on Windows

    PyPose can be installed and used on various Windows distributions. Depending on your system and compute requirements, your experience with PyPose on Windows may vary in terms of processing time. It is recommended, but not required, that your Windows system has an NVIDIA GPU in order to harness the full power of PyPose’s CUDA support.

    Prerequisites

    Supported Windows Distributions

    PyPose is supported on the following Windows distributions:

    The install instructions here will generally apply to all supported Windows distributions. The specific examples shown will be run on a Windows 11 Home machine

    Python

    Currently, PyPose on Windows only supports Python 3.7 and beyond; Python 2.x is not supported.

    As it is not installed by default on Windows, there are multiple ways to install Python:

    If you decide to use Chocolatey, and haven’t installed Chocolatey yet, ensure that you are running your command prompt as an administrator.

    For a Chocolatey-based install, run the following command in an administrative command prompt:

    choco install python
    

    Package Manager

    To install the PyPose binaries, you will need to use at least one of two supported package managers: Anaconda and pip. Currently we only support pip and it will provide you all of the PyPose dependencies in one, sandboxed install.

    pip

    If you installed Python by any of the recommended ways above, pip will have already been installed for you.

    Installation

    pip

    No CUDA

    Currently we do not have a CPU version of PyPose. Please stay tuned!

    With CUDA

    To install PyPose via pip, and you do have a CUDA-capable system, in the above selector, choose OS: Windows, Package: pip and the CUDA version suited to your machine. Often, the latest CUDA version is better. Then, run the command that is presented to you.

    Verification

    To ensure that PyPose was installed correctly, we can verify the installation by running sample PyPose code. Here we will construct a randomly initialized tensor.

    From the command line, type:

    python
    

    then enter the following code:

    import pypose as pp
    pp.__version__
    

    The output should be something similar to:

    '0.2.0'