Flask应用程序问题 - 部署 [英] Flask Application Issue - Deployment
问题描述
我正在使用Git local和Api App Service。我的项目文件夹中有requirements.txt文件。我尝试使用git push来部署它。但是,我收到以下错误。
I am using Git local and Api App Service. I have the requirements.txt file in my project folder. I tried to deploy it using git push. However, I get the below error.
remote:   cl.exe / c / nologo / Ox / W3 / GL / DNDEBUG / MT -Id:\ home \site \ www.root \ env \ include -ID:\ python34 \ include -ID:\\ \\ python34\include" -ID:\ Program Files(x86)\ Microsoft Visual Studio 14.0\VC \Include" " -ID:\Program Files(x86)\ Microsoft *
Visual Studio 14.0\VC\ATLMFC\Include" " -ID:\Program Files(x86)\ Windows Wits \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ " -ID:\Program Files(x86)\ Windows Wits\NETFXSDK \4.6.1 \include\\\" /Tclightfm/_lightfm_fast_no_openmp.c /Fobuild\temp.win32-3.6\Release\lightfm/_lightfm_fast_no_openmp.obj
-ffast-math -march = native
remote:   错误:命令'cl.exe'失败:没有这样的文件或目录
远程:
远程:   ----------------------------------------
remote:.. $
remote:command"d:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ __file __ ='D:\\local \\Temp \\pip-install-lshv9pct \\lightfm \\setup.py'; f = getattr(tokenize,'open',open) (__file __); code = f.read()。replace('\\\\'','\ n'); f.close(); exec(编译(代码,
__file__,'exec) "))" install --record D:\ local \Temp \ _pip-record-b5f7j_62 \ install-record.txt --single-version-external-managed --compile --install-headers d:\\\\\\\ site\wwwroot\env\include\site\python3.6\lightfm"在D中出现错误代码1失败:\ local \ Temp \ _pip-install-lshv9pct \lightfm \
remote:您使用的是pip版本10.0.1,但版本为19.0.3是
remote:您应该考虑通过'python -m pip install --upgrade pip'命令进行升级。
remote:网站部署期间出错。$
remote:
remote:错误 - 提交给远程存储库的更改但部署到网站失败。
要https:// dummy-op .scm.azurewebsites.net:443 / dummy-op.git
  31f12e4..c7de76d 主人 - >主人
remote: cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Id:\home\site\wwwroot\env\include -ID:\python34\include -ID:\python34\include "-ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\Include" "-ID:\Program Files (x86)\Microsoft
Visual Studio 14.0\VC\ATLMFC\Include" "-ID:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-ID:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /Tclightfm/_lightfm_fast_no_openmp.c /Fobuild\temp.win32-3.6\Release\lightfm/_lightfm_fast_no_openmp.obj
-ffast-math -march=native
remote: error: command 'cl.exe' failed: No such file or directory
remote:
remote: ----------------------------------------
remote: ..
remote: Command "d:\home\site\wwwroot\env\scripts\python.exe -u -c "import setuptools, tokenize;__file__='D:\\local\\Temp\\pip-install-lshv9pct\\lightfm\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code,
__file__, 'exec'))" install --record D:\local\Temp\pip-record-b5f7j_62\install-record.txt --single-version-externally-managed --compile --install-headers d:\home\site\wwwroot\env\include\site\python3.6\lightfm" failed with error code 1 in D:\local\Temp\pip-install-lshv9pct\lightfm\
remote: You are using pip version 10.0.1, however version 19.0.3 is available.
remote: You should consider upgrading via the 'python -m pip install --upgrade pip' command.
remote: An error has occurred during web site deployment.
remote:
remote: Error - Changes committed to remote repository but deployment to website failed.
To https://dummy-op.scm.azurewebsites.net:443/dummy-op.git
31f12e4..c7de76d master -> master
推荐答案
关于Windows风格的Python
of App Service 已被弃用,不建议使用。
这篇关于Flask应用程序问题 - 部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!