title: Installing pyenv 3.6.10 in macOS Big Sur
body: <p>I try to install pyenv 3.6.10 from version 2.2.2 in macOS Big Sur but getting following error. Also, tried commands <code>python3 -m pip install --upgrade setuptools</code> and <code>python3 -m pip install --upgrade pip</code></p>
  <p>python-build: use openssl@1.1 from homebrew
  python-build: use readline from homebrew
  Installing Python-3.6.10...
  python-build: use tcl-tk from homebrew
  python-build: use readline from homebrew
  python-build: use zlib from xcode sdk</p>
  <p>BUILD FAILED (OS X 11.6.1 using python-build 20180424)</p>
  <p>Inspect or clean up the working tree at /var/folders/c1/scmgbn853sdb56j8pjdp_b3c0000gn/T/python-build.20211126103205.49380
  Results logged to /var/folders/c1/scmgbn853sdb56j8pjdp_b3c0000gn/T/python-build.20211126103205.49380.log</p>
  <p>Last 10 log lines:
  ret = sendfile(in, out, offset, &amp;sbytes, &amp;sf, flags);
  ^
  ./Modules/posixmodule.c:10432:5: warning: code will never be executed [-Wunreachable-code]
  Py_FatalError(&quot;abort() called from Python code didn't abort!&quot;);
  ^~~~~~~~~~~~~
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include   -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include   -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes   -I. -I./Include -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/usr/local/opt/openssl@1.1/include -I/Users/angelocyril/.pyenv/versions/3.6.10/include  -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/usr/local/opt/openssl@1.1/include -I/Users/angelocyril/.pyenv/versions/3.6.10/include   -DPy_BUILD_CORE  -c ./Modules/_weakref.c -o Modules/_weakref.o
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include   -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include   -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes   -I. -I./Include -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/usr/local/opt/openssl@1.1/include -I/Users/angelocyril/.pyenv/versions/3.6.10/include  -I/usr/local/opt/readline/include -I/usr/local/opt/readline/include -I/usr/local/opt/openssl@1.1/include -I/Users/angelocyril/.pyenv/versions/3.6.10/include   -DPy_BUILD_CORE  -c ./Modules/_functoolsmodule.c -o Modules/_functoolsmodule.o
  1 warning and 1 error generated.
  make: *** [Modules/posixmodule.o] Error 1
  make: *** Waiting for unfinished jobs....</p>