Skip to content
Permalink
Browse files

Use pip3 precisely in configure.

Signed-off-by: Bofu Chen (bafu) <bofu@dt42.io>
  • Loading branch information...
bafu committed Feb 25, 2019
1 parent 089758c commit 67a6a83cb12b2098ab16a23b41af9efae119f6d4
Showing with 5 additions and 5 deletions.
  1. +5 −5 configure
@@ -49,7 +49,7 @@ install_system_dependencies() {
python3-pip \
wget
sudo service mongodb start
sudo -H pip install \
sudo -H pip3 install \
cython \
logzero \
paho-mqtt \
@@ -106,8 +106,8 @@ install_darknet() {
local darknet_nnpack_version="fa5bddc"

# build dependencies
pip install --user PeachPy==$peachpy_version
pip install --user git+https://github.com/Maratyszcza/confu@$confu_version
pip3 install --user PeachPy==$peachpy_version
pip3 install --user git+https://github.com/Maratyszcza/confu@$confu_version

pushd /tmp > /dev/null
git clone https://github.com/ninja-build/ninja.git
@@ -153,7 +153,7 @@ download_detector_model() {

install_tensorflow() {
if [ x"$DISTRIBUTIONID" = x"Ubuntu" ]; then
sudo -H pip install tensorflow
sudo -H pip3 install tensorflow
elif [ x"$DISTRIBUTIONID" = x"Raspbian" ]; then
TENSORFLOW_VERSION="1.0.1"
TENSORFLOW_PKGNAME="tensorflow-${TENSORFLOW_VERSION}-cp27-none-linux_armv7l.whl"
@@ -162,7 +162,7 @@ install_tensorflow() {
else
echo "$TENSORFLOW_PKGNAME has existed, skip to download it."
fi
sudo -H pip install $TENSORFLOW_PKGNAME
sudo -H pip3 install $TENSORFLOW_PKGNAME
fi
}

0 comments on commit 67a6a83

Please sign in to comment.
You can’t perform that action at this time.