Conda 中安装 Keras
Posted yaos
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Conda 中安装 Keras相关的知识,希望对你有一定的参考价值。
conda create -n keras python=3.5 ipykernel
activate keras
python -m ipykernel install --user --name keras
jupyter notebook
使用这种方法安装的 Keras 才能被 Jupyter Notebook 调用。
I found the answer at http://ipython.readthedocs.io/en/stable/install/kernel_install.html#kernels-for-different-environments
ipykernel has to be linked to the environment, and then jupyter can use it.
The following installation procedure works:
conda create -n keras python=3.5 ipykernel
activate keras
python -m ipykernel install --user --name keras
jupyter notebook
Now if I call sys.executable in the jupyter notebook, it prints the correct environment from where the executables are accessed.
以上是关于Conda 中安装 Keras的主要内容,如果未能解决你的问题,请参考以下文章