- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在尝试通过 brew
安装 python:
brew install python
但出现以下错误:
Stevens-MacBook-Pro :: ~ ‹master*› » brew install python
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/python-2.7.
Already downloaded: /Library/Caches/Homebrew/python-2.7.8_2.mountain_lion.bottle.tar.gz
==> Pouring python-2.7.8_2.mountain_lion.bottle.tar.gz
==> Caveats
Setuptools and Pip have been installed. To update them
pip install --upgrade setuptools
pip install --upgrade pip
You can install Python packages with
pip install <package>
They will install into the site-package directory
/usr/local/lib/python2.7/site-packages
See: https://github.com/Homebrew/homebrew/wiki/Homebrew-and-Python
.app bundles were installed.
Run `brew linkapps` to symlink these to /Applications.
/usr/bin/install_name_tool: object: /usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python malformed object (unknown load command 10)
Error: Failed to fix install names
The formula built, but you may encounter issues using it or linking other
formula against it.
==> /usr/local/Cellar/python/2.7.8_2/bin/python -ssetup.py --no-user-cfg instal
using one of the approaches described here:
Please make the appropriate changes for your system and try again.
Warning: The post-install step did not complete successfully
You can try again using `brew postinstall python`
==> Summary
🍺 /usr/local/Cellar/python/2.7.8_2: 4626 files, 73M
错误消息表明安装后失败,并尝试使用以下命令重新安装:
brew postinstall python
但错误仍然存在。我还尝试了 brew linkapps
,它成功完全链接了 python,但是当我从控制台运行 pip
时,我收到此错误:
Stevens-MacBook-Pro :: ~ ‹master*› » pip
zsh: /usr/local/bin/pip: bad interpreter: @@HOMEBREW_PREFIX@@/opt/python/bin/python2.7: no such file or directory
知道可能出了什么问题吗?
最佳答案
Pyenv 是一个 Python 版本管理工具,类似于 rbenv,但适用于 Python。
您可以通过 pyenv 轻松安装和更改 python 版本。
下面展示如何通过pyenv安装2.7.8版本的python:
ubuntu@ubuntu:~$ pyenv install 2.7.8
Downloading Python-2.7.8.tgz...
-> http://yyuu.github.io/pythons/74d70b914da4487aa1d97222b29e9554d042f825f26cb2b93abd20fdda56b557
Installing Python-2.7.8...
Installing setuptools from https://bootstrap.pypa.io/ez_setup.py...
Installing pip from https://bootstrap.pypa.io/get-pip.py...
Installed Python-2.7.8 to /home/ubuntu/.pyenv/versions/2.7.8
如您所见,它非常简单。
命令pyenv install "version"
可以帮助您轻松安装特定版本的python,甚至pip、setuptools也会自动安装。
我建议给pyenv尝试一下!!
关于python - brew install python - OSX 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26416953/
我想了解无线教程(Brew)的二进制运行时环境。任何人都提供一些有用的链接来学习 brew。 最佳答案 试试这些: http://www.palowireless.com/brew/tutorials
是否需要在 brew switch 之前/之后运行 brew unlink/brew link? 根据此链接https://docs.brew.sh/Tips-N'-Tricks#activate-a
我看到一些配备 REX 操作系统的设备,但它支持 Brew Zone、应用程序。但是BREW本身就是OS,我想知道REX和BREW有什么区别,它们之间的关系。谁能帮忙?一些CDMA设备的应用平台为BR
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 9 个月前关闭。 Improve t
我安装了 Paste 并想卸载它,目前正在运行 macOS High Sierra。 我曾尝试使用 $ brew uninstall Paste它返回 Error: No such keg: /usr
我在 ubuntu 19.04 上安装了 Homebrew 软件,但意外停止,因此安装未完成。但文件夹已经创建。 如果我再安装 sudo apt install linuxbrew-wrapper 我
请帮助了解正在发生的事情,或者是否需要采取任何措施。我看过很多关于处理 brew、节点、符号链接(symbolic link)、卸载和重新安装节点、npm、 yarn 的帖子,尝试过 brew cle
请帮助了解正在发生的事情,或者是否需要采取任何措施。我看过很多关于处理 brew、节点、符号链接(symbolic link)、卸载和重新安装节点、npm、 yarn 的帖子,尝试过 brew cle
我刚刚安装了一个新的 Cask,然后运行了 brew doctor,它返回了 Error: Cask 'java' is unreadable: undefined method undent' fo
当我运行 Homebrew's brew doctor (Mac OS X 10.9.2) 时,我收到以下警告消息: Warning: Python is installed at /Library/
我正在尝试使用brew-cask安装virtual box,但这会返回这种错误,并且我无法安装virtualbox。我使用 MacOSX Lion 10.7.5 和 homebrew 0.9.5,ru
我有一个软件包 dmtx-utils 有问题,它被移到了 homebrew/boneyard。它实际上是在期待,我相信它是 ImageMagick 的 旧 版本;早于 7.0.4-8(当前版本)的东西
我正在努力 brew install minikube。我没有任何版本,但需要旧版本。我正在尝试熟悉的方法,但出现错误: ~ brew install minikube@1.18.1 ==> Sear
硬盘驱动器故障后,我刚从商店拿到了我的 Mac Pro。我正在尝试再次安装我的环境。 我从 Homebrew 软件网站上的当前链接安装了 Homebrew 软件:/bin/bash -c "$(cur
我正在尝试通过 brew 安装 ffmpeg。我用 yasm 得到的错误是 “错误:在安装 ffmpeg 之前,您必须‘brew link pkg-config yasm’” 这样做时,我被告知我的权
已关闭。这个问题是 off-topic 。目前不接受答案。 想要改进这个问题吗? Update the question所以它是on-topic用于堆栈溢出。 已关闭10 年前。 Improve th
昨天通过Brew现在升级到V7,现在ES无法启动: OpenJDK 64-Bit Server VM warning: Ignoring option CMSInitiatingOccupancyFr
输出: ○ brew update error: Your local changes to the following files would be overwritten by merge:
Homebrew 工作正常,直到我进行了 brew 更新(几个月没有更新)。 brew 更新完成后,每个 brew 命令都会导致相同/相似的错误消息: /usr/local/Library/Homeb
我正在尝试使用 Homebrew 安装 MySQL。 ➜ ~ brew install mysql ==> Downloading https://cdn.mysql.c
我是一名优秀的程序员,十分优秀!