在 Azure Platform 上安装 Pandoc (watson-developer-cloud)



我正在尝试将Python Web应用程序部署到Azure。该应用程序使用 watson-developer-cloud 包。我已将其添加到应用程序根目录中的要求.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:localTemppip-build-31h4r4kiwatson-developer-cloudsetup.py", line 72, in <module>
remote:         long_description=read_md('README.md'),
remote:       File "D:localTemppip-build-31h4r4kiwatson-developer-cloudsetup.py", line 39, in read_md
remote:         return convert(f, 'rst')
remote:       File "D:homesitewwwrootenvlibsite-packagespypandoc__init__.py", line 69, in convert
remote: Command "python setup.py egg_info" failed with error code 1 in D:localTemppip-build-31h4r4kiwatson-developer-cloud
remote:         outputfile=outputfile, filters=filters)
remote:       File "D:homesitewwwrootenvlibsite-packagespypandoc__init__.py", line 260, in _convert_input
remote:         _ensure_pandoc_path()
remote:       File "D:homesitewwwrootenvlibsite-packagespypandoc__init__.py", line 544, in _ensure_pandoc_path
remote:         raise OSError("No pandoc was found: either install pandoc and add itn"
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.

如何安装潘多克?我尝试通过Kudu调试CMD控制台执行此操作,但它输出"拒绝访问"错误。

choco install pandoc,例如 或者可能使用 NuGet。

最新更新