简体   繁体   English

Windows anaconda 环境不能在 jupyter notebook 中工作

[英]windows anaconda environment not working in jupyter notebook

i'm created a conda environment我创建了一个 conda 环境

conda create -n tfgpu tensorflow-gpu
conda activate tfgpu

but now after running但现在跑步后

(tfgpu) > jupyter notebook

I can't import tensoflow as tf , notebook doesn't load this environment?我无法将 tensoflow 导入为 tf ,notebook 不加载此环境? Why it's happen?为什么会这样?

My problem is solved after:我的问题在以下情况下得到解决:

https://stackoverflow.com/a/44786736/12370909 https://stackoverflow.com/a/44786736/12370909

conda create -n tfgpu tensorflow-gpu
conda activate tfgpu
python -m ipykernel install --user --name tfgpu --display-name "Python (tfgpu)"
jupyter notebook

Then you could be able to create a new Notebook using your environment by selecting "Python (tfgpu)" from the drop-down list.然后,您可以通过从下拉列表中选择“Python (tfgpu)”来使用您的环境创建一个新笔记本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM