Commit f8934441 authored by nvmnghia's avatar nvmnghia

Update `conda` and `pip`

parent 7be7b819
......@@ -54,18 +54,25 @@ while read p; do
done < code_ext.txt
echo "Install Skype using latest online deb package"
wget -O skype.deb https://repo.skype.com/latest/skypeforlinux-64.deb
dpkg -i skype.deb
rm skype.deb
echo "Install anaconda"
ANACONDA_LATEST=$(wget -r --spider -l 1 https://repo.anaconda.com/archive/ 2>&1 | grep Anaconda3 | grep -v ppc64le | grep -m 1 Linux)
ANACONDA_LATEST=${ANACONDA_LATEST##*-- } # Keep the https part, which is right after '-- ' ^ -m 1 to grep the first match
wget -O anaconda.sh $ANACONDA_LATEST
sudo -u $usr bash ./anaconda.sh -f -p $HOME/anaconda
rm -rf anaconda.sh repo.anaconda.com
if ! [ -x "$(command -v skypeforlinux)" ]; then
echo "Install Skype using latest online deb package"
wget -O skype.deb https://repo.skype.com/latest/skypeforlinux-64.deb
dpkg -i skype.deb
rm skype.deb
fi
if ! [ -x "$(command -v skypeforlinux)" ]; then
echo "Install anaconda"
ANACONDA_LATEST=$(wget -r --spider -l 1 https://repo.anaconda.com/archive/ 2>&1 | grep Anaconda3 | grep -v ppc64le | grep -m 1 Linux)
ANACONDA_LATEST=${ANACONDA_LATEST##*-- } # Keep the https part, which is right after '-- ' ^ -m 1 to grep the first match
wget -O anaconda.sh $ANACONDA_LATEST
sudo -u $usr bash ./anaconda.sh -f -p $HOME/anaconda
rm -rf anaconda.sh repo.anaconda.com
fi
conda upgrade --all
pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
echo "Install docker"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment