解决python3.7环境下无法安装Tensorflow方法之一
- 在 anaconda 中使用
conda create -n tensorflow python=3.3
创建 tensorflow 虚拟环境 - 安装交互环境(ipykernel)
conda install ipykernel
- 启动tensorflow虚拟环境
activate tensorflow
- 将虚拟环境 tensorflow 写入到 Notebook 的 kernel 中:
python -m ipykernel install --name tensorflow --display-name "Python tensorflow"
- 重启 Jupyter Notebook,输入
jupyter kernelspec list
查看当前python环境 - 搞定