These instructions are tested on Ubuntu 18.04
, different Linux distributions
might require small modifications. All of these commands perform a local
installation for the current user, they do not modify any system-wide state or
require root access.
$ wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O /tmp/miniconda.sh
$ wget https://raw.githubusercontent.com/probcomp/notebook/master/files/conda_python2.txt -O /tmp/conda_python2.txt
$ wget https://raw.githubusercontent.com/probcomp/notebook/master/files/conda_probcomp.txt -O /tmp/conda_probcomp.txt
$ bash /tmp/miniconda.sh -b -p ${HOME}/miniconda
$ . ${HOME}/miniconda/etc/profile.d/conda.sh
$ conda install --yes conda=4.6.14 conda-build
$ conda create -n probcomp --yes --file /tmp/conda_python2.txt python=2.7
$ conda install -n probcomp --quiet --yes \
-c probcomp -c cidermole -c fritzo -c ursusest \
--file /tmp/conda_probcomp.txt
Optional: The line . ${HOME}/miniconda/etc/profile.d/conda.sh
needs to be run
for the conda
command to be available, consider adding this line to your
.bashrc
or .zshrc
file.
$ conda activate probcomp
$ python -m pytest --pyargs bayeslite
To develop a project, such as bayeslite, first uninstall it from conda, and build the source directly.
$ conda remove --force bayeslite
$ git clone git@github.com:probcomp/bayeslite
$ python setup.py install