python3
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revisionNext 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. | ||
+ | |||
+ | ===== RedHat based distros ===== | ||
+ | |||
+ | <code bash> | ||
+ | sudo dnf install readline-devel | ||
+ | sudo dnf install sqlite-devel openssl-devel bzip2-devel | ||
+ | sudo dnf install xz-devel | ||
+ | </ | ||
+ | |||
+ | Then on Fedora and macOS... | ||
+ | |||
+ | <code bash> | ||
+ | wget https:// | ||
+ | tar -xvf Python-3.6.0.tgz | ||
+ | cd Python-3.6.0/ | ||
+ | ./configure --prefix=/ | ||
+ | make | ||
+ | sudo make install | ||
+ | # sudo ln -s / | ||
+ | </ | ||
+ | |||
+ | ===== Debian based distros ===== | ||
+ | |||
+ | For Debian (eg., Rasbian) try [[http:// | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt-get install build-essential libncursesw5-dev libreadline-dev libssl-dev libgdbm-dev libc6-dev libsqlite3-dev tk-dev | ||
+ | </ | ||
+ | |||
+ | On Raspbian, I put it in the default location: | ||
+ | |||
+ | <code bash> | ||
+ | cd Python-3.6.0/ | ||
+ | ./configure | ||
+ | make | ||
+ | sudo make install | ||
+ | </ |
python3.txt · Last modified: 2023/04/14 20:37 by dblume