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

时间:2018-03-17 19:22:53

标签: python azure pip watson

我正在尝试将Python Web应用程序部署到Azure。该应用程序使用watson-developer-cloud软件包。我已将其添加到app根目录中的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调试CMD控制台这样做,但它输出“拒绝访问”#39;错误。

1 个答案:

答案 0 :(得分:0)

choco install pandoc,例如或者也许使用NuGet