jupyter notebook导入tensorflow模块报错
安装TensorFlow
可以参考
- https://tensorflow.google.cn/hub/installation?hl=zh_cn
- https://tensorflow.google.cn/install/pip?hl=zh-cn#windows
非GPU版本安装:
- pip install tensorflow==2.3.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
GPU版本安装:
- pip install tensorflow==2.12.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
打开PowerShell
查看虚拟环境
- conda info -e
激活需要使用的虚拟环境,这里是
- conda activate "D:\anconda3\envs\TensorFlow"
输入命令
- conda install ipykernel
- y
- python -m ipykernel install --name TensorFlow
重新打开jupyter notebook,然后就可以在New下面找到TersorFlow,以其为内核新建即可.
参考https://blog.csdn.net/m0_43402033/article/details/129687361,介绍的很详细.
生命依靠吸收负熵,避免了趋向平衡的衰退

浙公网安备 33010602011771号