Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

homebrew - Error while installing pyenv using Home-brew on macOS Mojave

I was trying to install anaconda-navigator on macOS Mojave, but there was no meta-package for Python v 3.6. So, I tried to upgrade my python version to 3.8.  There was an article by Matthew Broberg titled - "The right and wrong way to set up Python 3 as default on a Mac" (https://opensource.com/article/19/5/python-3-default-mac).

a) The first step was to invoke 'xcode-select --install'.  Since, it was installed already.
I tried to 'brew -install pyenv'. 

I got this error

'''
Error: The following formula: git cannot be installed as a binary package and must be built from source. Install the Command Line Tools: xcode-select --install Error: Git must be installed and in your PATH! Error: The following formula: pyenv cannot be installed as a binary package and must be built from source. Install the Command Line Tools: xcode-select --install '''
b) Then I ran 'xcode-select --install'

Then I got a response
'code-select: note: install requested for command line developer tools'

There was a pop-up menu asking command line developer tools to be installed. I clicked OK. It installed fine.

c) Then I ran 'xcode-select --install'. I got a response saying that the command line tools was already installed.  

d) Then I tried running 

'brew install pyenv'

After a lengthy output which seemed fine, I got this error :

'/usr/local/Homebrew/Library/Homebrew/brew.rb:17:in `<main>': HOMEBREW_REQUIRED_RUBY_VERSION was not exported! Please call bin/brew directly! (RuntimeError)'

e) I was also not able to locate pyenv by using 'which pyenv'
question from:https://stackoverflow.com/questions/65952736/error-while-installing-pyenv-using-home-brew-on-macos-mojave

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share

2.1m questions

2.1m answers

63 comments

56.6k users

...