在 macOS Mojave 上使用 Home-brew 安装 pyenv 时出错

问题描述

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

'''
错误:以下公式: git 不能作为二进制包安装,必须从源代码构建。 安装命令行工具: xcode-select --install 错误:必须安装 Git 并在您的 PATH 中! 错误:以下公式: pyenv 不能作为二进制包安装,必须从源代码构建。 安装命令行工具: xcode-select --install '''
b) 然后我跑了 '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'

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...