-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install python and moodlemlbackend package
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
echo "Installing Moodle Python mlbackend" | ||
|
||
apt-get update | ||
apt-get install -y --no-install-recommends python2.7 python-pip python2.7-dev | ||
pip -V | ||
pip install tensorflow>=1.0.0,<1.1 | ||
pip install moodlemlbackend | ||
|
||
# Keep our image size down. | ||
rm -rf ~/.cache/pip | ||
apt-get autoremove -y | ||
apt-get clean | ||
rm -rf /var/lib/apt/lists/* |