tensoflow安装,我这里用的最新版的python3.9,通过miniconda安装。
首先miniconda,官网链接https://docs.conda.io/en/latest/miniconda.html
然后点击miniconda终端
运行命令:
python3版本的快速安装
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --upgrade tensorflow # for Python 3.*
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --upgrade tensorflow-gpu # for Python 3.* and GPU
然后安装notebook
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --upgrade matplotlib notebook
安装完成如下
启动notebook
jupyter notebook
然后打开编辑器
编辑如下代码查看