Last active
April 9, 2025 04:00
-
-
Save Iftakharpy/93f3dc0025eabee7f0c1d8414b2838a5 to your computer and use it in GitHub Desktop.
pyenv python installation requirements
This file contains hidden or 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
sudo apt update | |
sudo apt -y upgrade | |
sudo apt install -y python2-dev python2 | |
sudo apt install -y build-essential checkinstall python-dev-is-python3 libffi-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev liblzma-dev libreadline-dev | |
# # tried to install numpy in python3.12 manged by pyenv on pi4b, didn't work | |
# sudo apt install -y libopenblas-dev cmake libblas3 liblapack3 liblapack-dev libblas-dev gfortran libatlas-base-dev | |
sudo pyenv install 3.13.1 | |
# sudo apt-get update | |
# sudo apt-get -y upgrade | |
# | |
# # these might throw errors saying no installation candicate | |
# # in that case ignore this and run the next command | |
# sudo apt-get install python2-dev python2 -y | |
# sudo apt-get install build-essential checkinstall python-dev-is-python3 libffi-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev liblzma-dev libreadline-dev -y | |
# | |
# sudo pyenv install 3.13.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment