我想在我的笔记本电脑上实现Sugyan Tensorflow Mnist,这是一个数字识别系统的实现。
我使用的是Ubuntu 16.04 LTS。我已经从requirement.txt安装了所有必需的软件包。
接下来我应该进行哪些步骤?如何使用npm install命令?
当我在终端执行npm install命令后,我得到了以下警告。
aniruddh@Aspire-5742Z:~/Desktop/tensorflow-mnist-master$ npm install > [email protected] postinstall /home/aniruddh/Desktop/tensorflow-mnist-master > gulp [11:29:47] Using gulpfile ~/Desktop/tensorflow-mnist-master/gulpfile.js [11:29:47] Starting 'build'... [11:29:48] Finished 'build' after 883 ms [11:29:48] Starting 'default'... [11:29:48] Finished 'default' after 27 μs npm WARN [email protected] No repository field. aniruddh@Aspire-5742Z:~/Desktop/tensorflow-mnist-master$gunicorn main:app --log-file=- [2016-12-15 12:34:49 +0530] [6108] [INFO] Starting gunicorn 19.6.0 [2016-12-15 12:34:49 +0530] [6108] [INFO] Listening at: http://127.0.0.1:8000 (6108) [2016-12-15 12:34:49 +0530] [6108] [INFO] Using worker: sync [2016-12-15 12:34:49 +0530] [6111] [INFO] Booting worker with pid: 6111
之后就卡在这里了。
我该如何解决这个问题?
回答:
感谢您对我的仓库的关注。
npm install
命令用于生成static/js/main.js
。警告信息可以忽略。
如果static/js/main.js
已经创建,只需运行gunicorn main:app --log-file=-
命令,并在浏览器中访问localhost:8000即可。