Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/277.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 安装textract时出错_Python_Python 3.x - Fatal编程技术网

Python 安装textract时出错

Python 安装textract时出错,python,python-3.x,Python,Python 3.x,显示..时出错 UnicodeDecodeError:“charmap”编解码器无法解码位置1671:字符映射到的字节0x8d 首先,您在mingwshell中,所以不能执行C:\path\file,因为bash解释反斜杠。你得加倍。即使这样做,也会失败,因为必须指定包含setup.py的目录 你首先要下载电子书库(0.15版) 并在setup.py中编辑以下文本: long_description = open('README.md').read(), 对于这一点: long

显示..时出错

UnicodeDecodeError:“charmap”编解码器无法解码位置1671:字符映射到的字节0x8d


首先,您在mingwshell中,所以不能执行C:\path\file,因为bash解释反斜杠。你得加倍。即使这样做,也会失败,因为必须指定包含
setup.py
的目录

你首先要下载电子书库(0.15版) 并在
setup.py
中编辑以下文本:

    long_description = open('README.md').read(),
对于这一点:

    long_description = open('README.md', encoding="utf-8").read(),
然后在EbookLib目录中运行此命令:

pip install .

此问题已在
github
上解决。解决方案的步骤和链接如下所述:

首先从
conda

conda install swig
从发行版下载了
EbookLib 0.15
zip

解压后,手动(使用记事本++)删除README.md文件中的unicode字符<代码>(unicode字符位于第44行)

导航到解压缩的电子书库0.15文件夹

cd to_unzipped_folder_path_here

pip install .
最后

pip install textract