[[Python3]]
 

Differences

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

Link to this comparison view

python3 [2017/02/01 16:23]
dblume
python3 [2017/02/05 11:57] (current)
dblume [Debian based distros]
Line 2: Line 2:
  
 If I want Python 3.6, I have to compile it myself.  Use "dnf" for RedHat based distros and "apt-get" for Debian. 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> <code bash>
Line 9: Line 11:
 </code> </code>
  
-I haven't tested [[http://www.unixmen.com/howto-install-python-3-x-in-ubuntu-debian-fedora-centos/|the following]]: +Then on Fedora and macOS...
- +
-<code bash> +
-sudo apt-get install build-essential libncursesw5-dev libreadline5-dev libssl-dev libgdbm-dev libc6-dev libsqlite3-dev tk-dev +
-</code> +
- +
-Then...+
  
 <code bash> <code bash>
Line 25: Line 21:
 sudo make install sudo make install
 # sudo ln -s /opt/python3/bin/python3 /usr/bin/python3 # 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>
 +
 +<code>
 +The necessary bits to build these optional modules were not found:
 +_bz2                  _lzma                 _ssl
 +</code>
 +
 +On Raspbian, I put it in the default location:
 +
 +<code bash>
 +cd Python-3.6.0/
 +./configure
 +make
 +sudo make install
 </code> </code>
python3.1485994990.txt.gz · Last modified: 2017/02/01 16:23 by dblume
 
Recent changes RSS feed Driven by DokuWiki