Skip to content

Instantly share code, notes, and snippets.

@pwgerman
pwgerman / install_new_package.sh
Created December 18, 2015 01:53 — forked from michaelaye/install_new_package.sh
My procedure for (Ana/Mini)conda users for installing new packages.
# set package_name, replace SpiceyPy with what you need.
PACKAGE_NAME = SpiceyPy
# First make sure you have activated the conda env where you want `package_name` installed
source activate myenv
# Then update pip to newest versions, as they are usually better in handling uninstalls:
conda update pip
# Now check if `package_name` is in conda:
conda install $PACKAGE_NAME
# if not, check if it's on pypi:
pip install $PACKAGE_NAME