Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keras_activate.sh:2: = not found message with virtualenv #9029

Closed
fonnesbeck opened this issue Jan 9, 2018 · 0 comments
Closed

keras_activate.sh:2: = not found message with virtualenv #9029

fonnesbeck opened this issue Jan 9, 2018 · 0 comments

Comments

@fonnesbeck
Copy link

I have keras installed in a virtual environment (using Anaconda). Each time I switch to the virtualenv, I get the following error:

~/anaconda3/envs/dev/etc/conda/activate.d/keras_activate.sh:2: = not found

I can verify that keras imports into Python after switching to the environment, so I'm not sure what the message is all about. The file contains the following:

#!/bin/bash
if [ "$(uname)" == "Darwin" ]
then
    # for Mac OSX
    export KERAS_BACKEND=tensorflow
elif [ "$(uname)" == "Linux" ]
then
    # for Linux
    export KERAS_BACKEND=theano
fi

I'm running keras 2.0.9 on macOS under Python 3.6.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants