使用 brew 降级到 python 3.6.5:错误 /bin/sh:狮身人面像构建:找不到命令 make:*** [



拜托,我正在使用brew降级到Python 3.6.5,但我得到了这个错误:

命令:

brew install --ignore-dependencies https://raw.githubusercontent.com/Homebrew/homebrew-core/f2a764ef944b1080be64bd88dca9a1d80130c558/Formula/python.rb

错误:

mkdir -p build
Using existing Misc/NEWS file
PATH=./venv/bin:$PATH sphinx-build -b html -d build/doctrees -D latex_elements.papersize=  . build/html 
/bin/sh: sphinx-build: command not found
make: *** [build] Error 127
Do not report this issue to Homebrew/brew or Homebrew/core!
These open issues may also help:
Python 3.7.2 install fails https://github.com/Homebrew/homebrew-core/issues/36753
pagmo: build with python binding https://github.com/Homebrew/homebrew-core/pull/36445
python@2: fix zlib with CLT on 10.14 https://github.com/Homebrew/homebrew-core/pull/34562

有人可以帮助我吗?

PS:Xcode已经安装,我运行brew unlink python(取消链接3.7(,sphinx-build/usr/local/bin/sphinx-build上。

3.6.5 的冲泡公式存在一些问题。这是 github 上关于此错误的未决问题。

我决定使用 pyenv-virtualenv 更改为 pyenv,以避免一直使用brew switch python 3.xx

由于我需要在同一台机器上使用许多不同的 Python 安装,例如 2.7 和 3.4 以及许多虚拟环境,因此只是酿造 swicth 和 virtualenv 不能很好地工作。

参见 python.rb 公式 3.6.8

步说明,带有成绩单,在我的分叉评论中:

我不得不离开,那不是注释掉

depends_on sphinx-doc" => :build

从源代码构建,如我的 fork 评论中所述:

Gisthub Dukechem Fork of Python.rb 公式 for 3.6.8