Skip to content
Permalink
Browse files

Post “How to downgrade Homebrew Python to 3.6”.

  • Loading branch information...
ChrisCummins committed Aug 15, 2018
1 parent 408b126 commit 8b46965057cb1073ff0fc9fb3904648accfa6593
Showing with 20 additions and 0 deletions.
  1. +20 −0 _posts/2018-08-15-brew-python-downgrade.md
  2. BIN img/banners/mercy_street.jpg
@@ -0,0 +1,20 @@
---
title: How to downgrade Homebrew Python to 3.6
banner: /img/banners/mercy_street.jpg
---

A new Python version has been released, but TensorFlow
[does not yet support it](https://github.com/tensorflow/tensorflow/issues/20517)
on account of a breaking change with `async` and `await` being made reserved
keywords. Homebrew has updated their default python version to 3.7, and it is
quite difficult to find out how to downgrade. To save headaches, the answer is
that you need to install a the python formula from a version prior to the
update:

```sh
$ brew unlink python
$ brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/e128fa1bce3377de32cbf11bd8e46f7334dfd7a6/Formula/python.rb
$ brew switch python 3.6.5
```

You can now `python -m pip install tensorflow` to your hearts content.
Binary file not shown.

0 comments on commit 8b46965

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.