【发布时间】:2018-03-17 19:22:52
【问题描述】:
我正在尝试将 Python Web 应用程序部署到 Azure。该应用程序使用 watson-developer-cloud 包。我已将其添加到应用程序根目录的 requirements.txt 文件中。但是,在运行 git push azure master 时,部署失败并显示以下消息:
remote: Collecting watson-developer-cloud (from -r requirements.txt (line 16))
remote: Using cached watson-developer-cloud-1.2.0.tar.gz
remote: Complete output from command python setup.py egg_info:
remote: See http://johnmacfarlane.net/pandoc/installing.html
remote: for installation options
remote: ---------------------------------------------------------------
remote:
remote: Traceback (most recent call last):
remote: File "<string>", line 1, in <module>
remote: File "D:\local\Temp\pip-build-31h4r4ki\watson-developer-cloud\setup.py", line 72, in <module>
remote: long_description=read_md('README.md'),
remote: File "D:\local\Temp\pip-build-31h4r4ki\watson-developer-cloud\setup.py", line 39, in read_md
remote: return convert(f, 'rst')
remote: File "D:\home\site\wwwroot\env\lib\site-packages\pypandoc\__init__.py", line 69, in convert
remote: Command "python setup.py egg_info" failed with error code 1 in D:\local\Temp\pip-build-31h4r4ki\watson-developer-cloud\
remote: outputfile=outputfile, filters=filters)
remote: File "D:\home\site\wwwroot\env\lib\site-packages\pypandoc\__init__.py", line 260, in _convert_input
remote: _ensure_pandoc_path()
remote: File "D:\home\site\wwwroot\env\lib\site-packages\pypandoc\__init__.py", line 544, in _ensure_pandoc_path
remote: raise OSError("No pandoc was found: either install pandoc and add it\n"
remote: OSError: No pandoc was found: either install pandoc and add it
remote: to your PATH or or call pypandoc.download_pandoc(...) or
remote: install pypandoc wheels with included pandoc.
remote:
remote: ----------------------------------------
remote: An error has occurred during web site deployment.
remote:
remote: Error - Changes committed to remote repository but deployment to website failed.
如何安装 Pandoc?我曾尝试通过 Kudu Debug CMD 控制台执行此操作,但它会输出“拒绝访问”错误。
【问题讨论】: