Skip to content

Latest commit

 

History

History
74 lines (63 loc) · 1.66 KB

virtualenvs.md

File metadata and controls

74 lines (63 loc) · 1.66 KB

Setting up a python virtualenv with probcomp repositories and their dependencies.

These instructions are tested on Ubuntu 16.04.5, different Linux distributions might require small modifications.

Retrieve required packages from the Ubuntu standard repositories.

sudo apt-get update -qq && \
  sudo apt-get upgrade -qq && \
  sudo apt-get install -qq \
    build-essential \
    ccache \
    cython \
    git \
    libboost-all-dev \
    libgsl0-dev \
    pandoc \
    python-apsw \
    python-flask \
    python-jsonschema \
    python-matplotlib \
    python-nose \
    python-nose-testconfig \
    python-numpy \
    python-pandas \
    python-pexpect \
    python-pip \
    python-pytest \
    python-requests \
    python-scipy \
    python-six \
    python-sklearn \
    python-statsmodels \
    python-virtualenv \
    ; # end of package list

Create a virtual environment and install jupyter.

$ virtualenv --system-site-packages /path/to/venv
$ . /path/to/venv/bin/activate
$ pip install --upgrade pip
$ pip install setuptools==44.1.1 ipykernel==4.8.2 notebook==5.2.1

Retrieve probcomp repositories from Github and build.

$ for project in bayeslite cgpm crosscat iventure Venturecxx; do
    git clone git@github.com:probcomp/"${project}".git
    cd "${project}"
    python setup.py build
    pip install --no-deps .
    cd ..
  done

Verify import of iventure.

$ python -c 'import iventure.magics'

Optional: Run the test suite for probcomp repositories (may take a while).

$ for project in bayeslite cgpm crosscat iventure Venturecxx; do
    cd "${project}"
    ./check.sh
    cd ..
  done