You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
15:25:59
/bin/bash: /tmp/OnStart_2019-07-25-15-25eklvadz0: /bin/bash^M: bad interpreter: No such file or directory
15:41:03
/bin/bash: /tmp/OnStart_2019-07-25-15-41dneui_mc: /bin/bash^M: bad interpreter: No such file or directory
This is now just pure copy paste from your sample scripts
#!/bin/bash
set -e
# OVERVIEW
# This script installs a single pip package in all SageMaker conda environments, apart from the JupyterSystemEnv which is a
# system environment reserved for Jupyter.
# Note this may timeout if the package installations in all environments take longer than 5 mins, consider using "nohup" to run this
# as a background process in that case.
sudo -u ec2-user -i <<'EOF'
# PARAMETERS
PACKAGE=scipy
# Note that "base" is special environment name, include it there as well.
for env in base /home/ec2-user/anaconda3/envs/*; do
source /home/ec2-user/anaconda3/bin/activate $(basename "$env")
if [ $env = 'JupyterSystemEnv' ]; then
continue
fi
pip install --upgrade "$PACKAGE"
source /home/ec2-user/anaconda3/bin/deactivate
done
EOF
The text was updated successfully, but these errors were encountered:
copy to notepad++
view>show symbol>show all symbols
replace "/r" with nothing
CRLF should become LF which is valid in unix
copy and paste as plain text!!!
I get the following logs:
This is now just pure copy paste from your sample scripts
The text was updated successfully, but these errors were encountered: