DEV Community

Discussion on: Install python 3.8.0 via pyenv on BigSur

Collapse
 
ruslanskira profile image
Ruslan Skira

I'm still stuck with the same problem(( M1 mac

Collapse
 
0xkoji profile image
0xkoji

What is your issue?
Installing pyenv or install python via pyenv?

Collapse
 
ruslanskira profile image
Ruslan Skira

awesome You are here).

  1. pyenv install 3.7.6
  2. BUILD FAILED (OS X 11.2.1 using python-build 20180424)
Thread Thread
 
0xkoji profile image
0xkoji

I saw some major versions don't work on M1.
Maybe you can try to install python 3.9.1

Thread Thread
 
ruslanskira profile image
Ruslan Skira

I have 3.9.1
but the project on 3.6.9.
and during pyenv install occurs errors with my python.
and I should use 3.6.9

and couldn't solve this issue.

Thread Thread
 
0xkoji profile image
0xkoji

Did you try the following?

$ CFLAGS="-I$(brew --prefix openssl)/include -I$(brew --prefix bzip2)/include -I$(brew --prefix readline)/include -I$(xcrun --show-sdk-path)/usr/include" LDFLAGS="-L$(brew --prefix openssl)/lib -L$(brew --prefix readline)/lib -L$(brew --prefix zlib)/lib -L$(brew --prefix bzip2)/lib" pyenv install --patch 3.9.1 < <(curl -sSL github.com/python/cpython/commit/8... install miniforge3-4.9.2full_index=1)

Thread Thread
 
ruslanskira profile image
Ruslan Skira • Edited

Yes I trying.
answer

pyenv: /Users/ruslanskira/.pyenv/versions/3.9.1 already exists )))

but for 3.6.9
patch unexpectedly ends in middle of line
patch: **** Only garbage was found in the patch input.

BUILD FAILED (OS X 11.2.1 using python-build 20180424)

what I found
github.com/pyenv/pyenv/issues/1643
it is open issue.

Thread Thread
 
0xkoji profile image
0xkoji

Please check this out. Actually I can install 3.6.9 on BigSur.
dev.to/kojikanao/install-python-3-...