Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/276.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 无法导入pandoc,获取FileNotFoundError_Python_Package_Anaconda - Fatal编程技术网

Python 无法导入pandoc,获取FileNotFoundError

Python 无法导入pandoc,获取FileNotFoundError,python,package,anaconda,Python,Package,Anaconda,我已经在anaconda中使用pip install pandoc安装了pandoc包,但是我抛出了下面的错误。 FileNotFoundError:[Errno 2]没有这样的文件或目录:'/root/anaconda3/envs/test/lib/python3.5/site packages/pandoc/definitions/1.16.hs' 我关注了以下链接: 我犯了同样的错误,我把 import pandoc # Causes the FileNotFoundE

我已经在anaconda中使用pip install pandoc安装了pandoc包,但是我抛出了下面的错误。 FileNotFoundError:[Errno 2]没有这样的文件或目录:'/root/anaconda3/envs/test/lib/python3.5/site packages/pandoc/definitions/1.16.hs'

我关注了以下链接:
我犯了同样的错误,我把

import pandoc           # Causes the FileNotFoundError!
在我的Python脚本的顶部。该库名为
pypandoc
,而不是
pandoc
,因此请尝试使用它

import pypandoc         # Works for me.