title: Install Keras on Anaconda OSX
body: <p>I am trying to install keras on an anaconda environment (OSX), because I want to use it with spyder - ipython. To do that I just used <code>pip install keras</code> (I already have tensorflow). After the installation when I call python 2.7 from the terminal, keras works fine. But, when I call python 3.5 or spyder and try to import keras I receive:
  No module named 'keras'</p>
  
  <p>I assume the issue might be with the PATHS on my MacBook, because <code>which python</code> returns </p>
  
  <pre><code>/usr/local/bin/python2.7 
  </code></pre>
  
  <p>while <code>which python3.5 (or spyder)</code> returns </p>
  
  <pre><code>/Users/georgiospapadopoulos/anaconda/bin/python3.5
  /Users/georgiospapadopoulos/anaconda/bin/spyder
  </code></pre>
  
  <p>Also, during <code>pip install keras</code> shows that </p>
  
  <pre><code>Requirement already satisfied: keras in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
  </code></pre>
  
  <p>My ~/.bash_profile contains </p>
  
  <pre><code># added by Anaconda3 2.4.0 installer
  export PATH="/Users/georgiospapadopoulos/anaconda/bin:$PATH"
  
  # added by Anaconda3 4.2.0 installer
  export PATH="/Users/georgiospapadopoulos/anaconda/bin:$PATH"
  export CUDA_HOME=/usr/local/cuda
  export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:$CUDA_HOME/lib"
  export PATH="$CUDA_HOME/bin:$PATH"
  
  # Setting PATH for Python 2.7
  # The original version is saved in .bash_profile.pysave
  #PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
  PATH="/usr/local/bin/python:$PATH"
  export PATH
  </code></pre>