Skip to content

Instantly share code, notes, and snippets.

@noahgift
Created December 1, 2022 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noahgift/e64adc4f2d4852947bfc94b2ebaf2dee to your computer and use it in GitHub Desktop.
Save noahgift/e64adc4f2d4852947bfc94b2ebaf2dee to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
# This script installs a pip package in compute instance azureml_py38 environment.
sudo -u azureuser -i <<'EOF'
PACKAGE=numpy
ENVIRONMENT=azureml_py38
conda activate "$ENVIRONMENT"
pip install "$PACKAGE"
conda deactivate
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment