Skip to content

Instantly share code, notes, and snippets.

@clbarnes
Last active February 24, 2016 21:24
Show Gist options
  • Save clbarnes/6ee8d8cc3caf0f72b34e to your computer and use it in GitHub Desktop.
Save clbarnes/6ee8d8cc3caf0f72b34e to your computer and use it in GitHub Desktop.
Uninstall and reinstall ProbLog's binaries from a particular conda environment
#!/bin/bash
set -e
STARTING_ENV="$CONDA_DEFAULT_ENV"
if test -z "$1" ; then
TARGET_ENV="$1"
source activate TARGET_ENV
else
TARGET_ENV="$STARTING_ENV"
fi
rm -r "~/anaconda3/envs/$TARGET_ENV/lib/python3.5/site-packages/problog/lib/python3/"
problog install
if test -z "$STARTING_ENV"; then
source deactivate
else
source activate "$STARTING_ENV"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment