Last active
June 26, 2020 08:07
-
-
Save jakubczaplicki/ef638749904b5d77541d5899fb8b7528 to your computer and use it in GitHub Desktop.
Installing Python 3.8.3 + PIP + virtualenv + Octoprint on RaspberryPI
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
# install dependencies | |
sudo apt-get install build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev | |
# install openssl | |
./config --prefix=$HOME/openssl && make install | |
# add the path /home/pi/openssl/lib to /etc/ld.so.conf | |
ldconfig | |
# install python | |
./configure --with-openssl=/home/pi/openssl --prefix=$HOME/python38 | |
make | |
make install | |
# add pip | |
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py | |
$HOME/python38/bin/python3 get-pip.py | |
# add virtualenv | |
./python38/bin/pip install virtualenv | |
# install octoprint | |
./python38/bin/virtualenv -p ./python38/bin/python3 octoprint | |
./octoprint/bin/octoprint serve |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment