Conda 中安装 Keras

本文详细介绍了如何在特定的Conda环境中安装Keras,并确保其能被JupyterNotebook正确调用的方法。通过创建名为'keras'的环境并安装Python 3.5、ipykernel等依赖,激活环境后,使用python -m ipykernel install命令将ipykernel链接到此环境,最后通过JupyterNotebook验证安装成功。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.

转载于:https://www.cnblogs.com/yaos/p/9738069.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值