博主的电脑已经安装了python3.7,并且已经安装好了anaconda.(如何安装anconda?去官网下载后运行就好了,我安装的是界面版本)
1. 在终端输入:
conda create -n tensorflow python=3.7
该命令执行完后,你的anaconda的environment处应该会有这样的显示:
2.然后运行anaconda的Home属性下的Spyder,如图:
3.然后在Spyder中写入你的代码,点击运行,如图:
4.如果报错:no ipython console is currently available to run xxx.py
那么需要打开一个ipython,如图所示: