This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |