User Tools

Site Tools


python3
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


Previous revision
Next revision
python3 [2017/02/05 11:25] dblume
Line 1: Line 1:
 +====== Python3 ======
  
 +If I want Python 3.6, I have to compile it myself.  Use "dnf" for RedHat based distros and "apt-get" for Debian.
 +
 +===== RedHat based distros =====
 +
 +<code bash>
 +sudo dnf install readline-devel  # or up-arrow won't navigate history
 +sudo dnf install sqlite-devel openssl-devel bzip2-devel
 +sudo dnf install xz-devel
 +</code>
 +
 +Then on Fedora and macOS...
 +
 +<code bash>
 +wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz
 +tar -xvf Python-3.6.0.tgz
 +cd Python-3.6.0/
 +./configure --prefix=/opt/python3
 +make
 +sudo make install
 +# sudo ln -s /opt/python3/bin/python3 /usr/bin/python3
 +</code>
 +
 +===== Debian based distros =====
 +
 +For Debian (eg., Rasbian) try [[http://www.unixmen.com/howto-install-python-3-x-in-ubuntu-debian-fedora-centos/|the following]] (on raspberry pi libssl-dev isn't available):
 +
 +<code bash>
 +sudo apt-get install build-essential libncursesw5-dev libreadline-dev libssl-dev libgdbm-dev libc6-dev libsqlite3-dev tk-dev
 +</code>
 +
 +On Raspbian, I put it in the default location:
 +
 +<code bash>
 +cd Python-3.6.0/
 +./configure
 +make
 +sudo make install
 +</code>
python3.txt · Last modified: 2023/04/14 20:37 by dblume