-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·33 lines (26 loc) · 1.03 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·33 lines (26 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
PKG_OK=$(dpkg-query -W --showformat='${Status}\n' wordnet|grep "install ok installed")
echo Checking for package: $PKG_OK
if [ "" == "$PKG_OK" ]; then
echo "No wordnet. Setting up wordnet."
sudo apt-get --force-yes --yes install wordnet
fi
PKG_OK=$(dpkg-query -W --showformat='${Status}\n' python|grep "install ok installed")
echo Checking for package: $PKG_OK
if [ "" == "$PKG_OK" ]; then
echo "No python. Setting up python."
sudo apt-get --force-yes --yes install python
fi
PKG_OK=$(dpkg-query -W --showformat='${Status}\n' python-nltk|grep "install ok installed")
echo Checking for package: $PKG_OK
if [ "" == "$PKG_OK" ]; then
echo "No python-nltk. Setting up python-nltk."
sudo apt-get --force-yes --yes install python-nltk
fi
PKG_OK=$(dpkg-query -W --showformat='${Status}\n' python-gtk2|grep "install ok installed")
echo Checking for package: $PKG_OK
if [ "" == "$PKG_OK" ]; then
echo "No python-gtk2. Setting up python-gtk2."
sudo apt-get --force-yes --yes install python-gtk2
fi
python -m nltk.downloader all