![brew install mongodb fail brew install mongodb fail](https://zellwk.com/images/2020/install-mongodb/mongo-shell.png)
One final option: if you absolutely must have a specific python version, pyenv can help. Going forward, macOS users are advised to install the php formula and follow the standard PECL installation instructions using the pecl command provided by the Homebrew PHP installation.
#Brew install mongodb fail how to#
If you want to monkey with prior versions of Python installed via homebrew, this answer should help: How to install older formula using Brew? Installing the MongoDB PHP Driver on macOS with Homebrew Homebrew 1.5.0 deprecated the Homebrew/php tap and removed formulae for individual PHP extensions. However, using virtualenv removes the need for much of these sorts of gymnastics. This will currently install MongoDB 4.2.x: brew install mongodb-community. You can reset your homebrew python by removing it ( brew uninstall python), or by changing the symlink ( ln -s -f /usr/bin/python /usr/local/bin/python). Install the latest available production release of MongoDB Community Server. It's possible that you installed the latest python 2.7.x via brew which puts /usr/local/bin/python as a symlink in your $PATH, or you perhaps have a python alias pointing somewhere you don't want. For example, /usr/bin/python -V gives me 2.7.10 even though python -V gives me 2.7.13 (via brew). If you enter the command: which python, do you get /usr/bin/python (system) or /usr/local/bin/python (brew installed user-land python). Apperantly, every other package that I try to install (for example wget) is throwing this errors, but the packages are correctly installed. replace('\r ', ' '), file, 'exec')) -no-user. I have an issue installing mongodb via homebrew (new MacBook Pro, OS X 10.10.2, fresh installation). However, assuming your use case really does require using a specific Python version - getting to an actual solution now - be sure sure you really upgraded system python to begin with. brew install mongodb fails, with the error Last 15 lines from /Users/tonglh/Library/Logs/Homebrew/mongodb/01.python.
#Brew install mongodb fail code#
Code written for 2.7.x should all be compatible. Step 1 brew tap mongodb/brew Step 2 to install latest community version.
![brew install mongodb fail brew install mongodb fail](https://www.mongodb.com/community/forums/uploads/default/original/3X/8/7/87f636e617ef0a3d12958c9adb6f08ef847ab84b.jpeg)
If you needed 2.6, that would be a different story since that's a change in minor version. Homebrew/homebrew-php) problem please file this issue at the tap. All pythons with the same minor revision number (2.7) should always be compatible. Secondly, I am unclear why you need 2.7.10 instead of 2.7.13. You need to assume that system utilities require a specific version of system python, and your user land code may then be locked to that python version forever, which is not wise (unless you're writing system utilities, in which case just use /bin/python, but then you wouldn't be asking this question.). First, it's generally considered bad practice to rely on system python for user land code if you can avoid it.