brew install pybind11失败

时间:2019-02-12 11:24:56

标签: python-3.x macos homebrew pybind11

brew install pybind11

失败

Error: python is already installed from !
Please `brew uninstall python` first."

对于已安装的Python 3.6.5

在安装pybind11时是否可以不重新安装python吗?

扩展日志:

brew install -vd pybind11
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pybind11.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/cmake.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sphinx-doc.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gdbm.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/readline.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sqlite.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/xz.rb
==> Installing dependencies for pybind11: python
rm /usr/local/bin/2to3
rm /usr/local/bin/2to3-3.6
rm /usr/local/bin/easy_install-3.6
rm /usr/local/bin/idle3
rm /usr/local/bin/idle3.6
rm /usr/local/bin/pip3
rm /usr/local/bin/pip3.6
rm /usr/local/bin/pydoc3
rm /usr/local/bin/pydoc3.6
rm /usr/local/bin/python3
rm /usr/local/bin/python3-config
rm /usr/local/bin/python3.6
rm /usr/local/bin/python3.6-config
rm /usr/local/bin/python3.6m
rm /usr/local/bin/python3.6m-config
rm /usr/local/bin/pyvenv
rm /usr/local/bin/pyvenv-3.6
rm /usr/local/bin/wheel3
rm /usr/local/lib/pkgconfig/python-3.6.pc
rm /usr/local/lib/pkgconfig/python-3.6m.pc
rm /usr/local/lib/pkgconfig/python3.pc
rm /usr/local/share/doc/python
rm /usr/local/share/man/man1/python3.1
rm /usr/local/share/man/man1/python3.6.1
rm /usr/local/Frameworks/Python.framework/Versions/3.6
Error: python is already installed from !
Please `brew uninstall python` first."
ln -s ../Cellar/python/3.6.5_1/bin/2to3 2to3
ln -s ../Cellar/python/3.6.5_1/bin/2to3-3.6 2to3-3.6
ln -s ../Cellar/python/3.6.5_1/bin/easy_install-3.6 easy_install-3.6
ln -s ../Cellar/python/3.6.5_1/bin/idle3 idle3
ln -s ../Cellar/python/3.6.5_1/bin/idle3.6 idle3.6
ln -s ../Cellar/python/3.6.5_1/bin/pip3 pip3
ln -s ../Cellar/python/3.6.5_1/bin/pip3.6 pip3.6
ln -s ../Cellar/python/3.6.5_1/bin/pydoc3 pydoc3
ln -s ../Cellar/python/3.6.5_1/bin/pydoc3.6 pydoc3.6
ln -s ../Cellar/python/3.6.5_1/bin/python3 python3
ln -s ../Cellar/python/3.6.5_1/bin/python3-config python3-config
ln -s ../Cellar/python/3.6.5_1/bin/python3.6 python3.6
ln -s ../Cellar/python/3.6.5_1/bin/python3.6-config python3.6-config
ln -s ../Cellar/python/3.6.5_1/bin/python3.6m python3.6m
ln -s ../Cellar/python/3.6.5_1/bin/python3.6m-config python3.6m-config
ln -s ../Cellar/python/3.6.5_1/bin/pyvenv pyvenv
ln -s ../Cellar/python/3.6.5_1/bin/pyvenv-3.6 pyvenv-3.6
ln -s ../Cellar/python/3.6.5_1/bin/wheel3 wheel3
ln -s ../../Cellar/python/3.6.5_1/share/doc/python python
ln -s ../../../Cellar/python/3.6.5_1/share/man/man1/python3.1 python3.1
ln -s ../../../Cellar/python/3.6.5_1/share/man/man1/python3.6.1 python3.6.1
ln -s ../../Cellar/python/3.6.5_1/lib/pkgconfig/python-3.6.pc python-3.6.pc
ln -s ../../Cellar/python/3.6.5_1/lib/pkgconfig/python-3.6m.pc python-3.6m.pc
ln -s ../../Cellar/python/3.6.5_1/lib/pkgconfig/python3.pc python3.pc
ln -s ../../../Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6 3.6
Error: Kernel.exit
/usr/local/Homebrew/Library/Homebrew/utils.rb:62:in `exit'
/usr/local/Homebrew/Library/Homebrew/utils.rb:62:in `odie'
/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:570:in `install_dependency'
/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:545:in `block in install_dependencies'
/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:545:in `each'
/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:545:in `install_dependencies'
/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:254:in `install'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:321:in `install_formula'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:253:in `block in install'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:251:in `each'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:251:in `install'
/usr/local/Homebrew/Library/Homebrew/brew.rb:105:in `<main>

0 个答案:

没有答案