Scripts/install/linux/install-cntk.sh: fix conda env update

This commit is contained in:
Mark Hillebrand 2016-11-21 09:46:21 +00:00
Родитель bbc8c6a2ea
Коммит afd0a87450
1 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

@ -111,10 +111,13 @@ CONDA="$HOME/anaconda3/bin/conda"
[ -x "$CONDA" ]
PY_ACTIVATE="$HOME/anaconda3/bin/activate"
[ -x "$PY_ACTIVATE" ]
PY_DEACTIVATE="$HOME/anaconda3/bin/deactivate"
[ -x "$PY_DEACTIVATE" ]
CNTK_PY34_ENV_PREFIX="$ANACONDA_PREFIX/envs/cntk-py34"
CNTK_PY34_ENV_NAME="cntk-py34"
CNTK_PY34_ENV_PREFIX="$ANACONDA_PREFIX/envs/$CNTK_PY34_ENV_NAME"
if [ -d "$CNTK_PY34_ENV_PREFIX" ]; then
"$CONDA" env update --file "$CNTK_PY34_ENV_FILE" --name "$CNTK_PY34_ENV_PREFIX" || {
"$CONDA" env update --file "$CNTK_PY34_ENV_FILE" --name "$CNTK_PY34_ENV_NAME" || {
echo Updating Anaconda environment failed.
exit 1
}
@ -135,6 +138,10 @@ set -x
pip install "$CNTK_WHEEL_PATH"
set +x
source "$PY_DEACTIVATE"
set -x
###########################################
# Create an activation script