Last active
April 13, 2017 22:25
-
-
Save dlovitch/d0bd0f6f8a85bcb67660f3fbaedd3917 to your computer and use it in GitHub Desktop.
rpi python3.6
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
# get and extract | |
curl -O https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz | |
tar zxf Python-3.6.1.tgz | |
cd Python-3.6.1/ | |
# required libraries that py needs or wants, but doesn't necessarily warn about | |
# one such message: | |
# The necessary bits to build these optional modules were not found: | |
# _bz2 _curses _curses_panel | |
# _dbm _gdbm _lzma | |
# _sqlite3 _ssl _tkinter | |
# readline | |
# an example of a post-install error where libssl-dev was needed: | |
# pip._vendor.requests.exceptions.SSLError: Can't connect to HTTPS URL because the SSL module is not available. | |
sudo apt-get install libssl-dev libncursesw5-dev libsqlite3-dev libbz2-dev liblzma-dev libreadline6-dev libdb5.3-dev libgdbm-dev tk8.5-dev | |
# configure | |
# do i want to use this? ./configure --enable-optimizations | |
./configure | |
# use many processors | |
make -j8 | |
# altinstall is critical for not messing with the system py | |
sudo make altinstall |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment