Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions research/delf/INSTALL_INSTRUCTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ Install python library dependencies:

```bash
pip3 install matplotlib numpy scikit-image scipy
# Debian/Ubuntu:
sudo apt-get install python3-tk
# SLES/openSUSE:
sudo zypper install python3-tk
```

### `tensorflow/models`
Expand Down
6 changes: 5 additions & 1 deletion research/delf/delf/python/training/install_delf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ install_python_libraries() {
pip3 install matplotlib numpy scikit-image scipy
local exit_code=$?
handle_exit_code ${exit_code} "Unable to install at least one of: matplotlib numpy scikit-image scipy."
sudo apt-get -y install python3-tk
if command -v zypper > /dev/null 2>&1; then
sudo zypper -n install python3-tk
elif command -v apt-get > /dev/null 2>&1; then
sudo apt-get -y install python3-tk
fi
local exit_code=$?
handle_exit_code ${exit_code} "Unable to install python3-tk."
}
Expand Down