I have downloaded python-3.6.1.tar.xz. then I extracted it. There is a file README.rst. this is the instruction file. and has the instruction how to install.
On Unix, Li
When I was trying to install Python 3.7.3 through pyenv
, I got this same error. It was solved by ensuring that I had the prerequisites to my operating system, with the following:
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev python-openssl git
I found this in pyenv Common build problems, thanks to agibalov.