码迷,mamicode.com
首页 > 其他好文 > 详细

Conda 中安装 Keras

时间:2018-10-03 00:19:31      阅读:607      评论:0      收藏:0      [点我收藏+]

标签:ipy   create   access   book   int   使用   The   exe   link   

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

标签:ipy   create   access   book   int   使用   The   exe   link   

原文地址:https://www.cnblogs.com/yaos/p/9738069.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!