TensorFlow in Flask Frame Demo
-
切换到 Python3 环境,可以用虚拟环境 virtualenv 或者 conda,总之要确认
python --version
的输出是Python3
字样$ python --version Python 3.7.6 $ pip --version pip 20.0.2 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)
-
切换回本项目的根目录,安装 pip 依赖
$ ls doc/ main.py mnist/ README.md requirements.txt src/ static/ templates/ $ pip install -r requirements.txt