The problem could be due to the version of tensorflow – tensorboard mismatch. When you give the command conda install -c conda-forge keras for installing keras, the tensorflow and tensorboard versions gets changed.
I tried the following steps and it worked fine for me.
- conda create -n tf python=3.6
- activate tf
- conda install keras
Installing keras will automatically install tensorflow.
I just had an issue with the same symptom. Instead of printing the error message, the activation of the conda environment exited the console application.
The scripts that run on activation can be found in
./etc/conda/activate.d inside the environment. The path to the environments can be found using
conda env list. Check these scripts for any ‘exit’ commands, commenting them out if necessary. This should let you at least see the error message.
In my case the issue was caused by packages requiring MSVC compiler, and Visual Studio studio was not installed.
I was also facing the same error and i have resolved it by re creating the conda environment. It is happening due to version mismatch between couple of packages. Just delete the conda environment and re-create the environment but this time do not add tensorflow GPU package instead just add keras-gpu, it will take care everything.
I did the following things:
deleted the same env
created the same environment using
conda create -n myEnv python==3.6
- install keras gpu
conda install -c conda-forge keras-gpu
now it will install necessary packages and then you can activate the environment and use it