Skip to content

Instantly share code, notes, and snippets.

@Ark74
Created November 17, 2018 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ark74/648dc2228dd235fb4bedfc990fac7e74 to your computer and use it in GitHub Desktop.
Save Ark74/648dc2228dd235fb4bedfc990fac7e74 to your computer and use it in GitHub Desktop.
Backport installer to python3 (Trisquel 8)
#!/bin/sh -e
# "-e" exists on first error.
#Check if user is root
if ! [ $(id -u) = 0 ]; then
echo "You need to be root or have sudo privileges!"
exit 1
fi
apt -yq2 install libpng-dev \
libfreetype6 \
libfreetype6-dev \
python3-dev \
python3-simplejson \
python3-pyqt4 \
python3-numpy \
python3-scipy \
python3-matplotlib \
libgeos-dev \
python3-shapely \
python3-pip \
libspatialindex-dev
easy_install -U distribute
pip3 install --upgrade pip
pip3 install --upgrade matplotlib Shapely
pip3 install rtree
pip3 install svg.path
pip3 install request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment