Skip to content

SHIFT Python API

Zhiyuan Yao edited this page Mar 31, 2023 · 11 revisions

Installation:

  • Download our latest release from our GitHub Releases Page:

    • macOS: shift_python-x.x.x-conda_macos.zip
    • Ubuntu (including Windows Subsystem for Linux): shift_python-x.x.x-conda_linux.zip
  • Unzip the downloaded file to somewhere you like.

  • (For ARM Mac users) If you use Mac/Macbook with M1/M2 chips (ARM arch), do the following before moving to the next step:

conda config --env --set subdir osx-64

This step makes conda to use x86_64 architecture channel(s).

  • In the Terminal:
cd [directory-you-unzipped-the-package]
conda create -n shift python=3.7 anaconda -y
conda activate shift
conda update --all -y
conda install *.tar.bz2
conda clean --all -y

Module:

import shift
Clone this wiki locally