I have to use Python 3.6.5
because of a library I use that keeps showing bugs on 3.7.0
(TensorFlow).
I installed Python 3.6.5
using Homebrew as follows:
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/f2a764ef944b1080be64bd88dca9a1d80130c558/Formula/python.rb
If I install vim
using Homebrew:
brew install vim --with-python
it updates Python to 3.7.0
. So I end up having a working vim but broken TensorFlow code. What I did was switching back to 3.6.5
after installing vim
:
brew switch python 3.6.5_1
And I ended up having a working TensorFlow code but a broken vim
:
dyld: Library not loaded: /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/Python
Referenced from: /usr/local/bin/vim
Reason: image not found
[1] 83442 abort vim
pyenv
. I'd recommend letting Homebrew manage the 3.7.0 installation andvim
, and usepyenv
to manage your development environment with TensorFlow.