Skip to content

Commit

Permalink
Update magenta-install.sh
Browse files Browse the repository at this point in the history
As of Anaconda version 4.4, it is advised to use `conda activate ...` instead of `source activate. `
Another change is that the pip3 is replaced by pip as we are already specifying the python version while creating the environment.
  • Loading branch information
abbasidaniyal authored Mar 2, 2020
1 parent 8c9ab7d commit c5f1356
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions magenta/tools/magenta-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ conda create -n magenta python=3.7
# In order to determine if any errors occurred while executing it, we verify
# that the environment changed afterward.
set +e
source activate magenta
conda activate magenta
set -e
if [[ $(conda info --envs | grep "*" | awk '{print $1}') != "magenta" ]]; then
err 'Did not successfully activate the magenta conda environment'
fi

# Install other dependencies
pip3 install jupyter magenta
pip install jupyter magenta

# Install rtmidi for realtime midi IO
if [[ $(which apt-get) ]]; then
Expand All @@ -111,7 +111,7 @@ if [[ $(which apt-get) ]]; then
echo ""
sudo apt-get install build-essential libasound2-dev libjack-dev
fi
pip3 install --pre python-rtmidi
pip install --pre python-rtmidi

echo ""
echo "=============================="
Expand Down

0 comments on commit c5f1356

Please sign in to comment.