Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/289.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 “如何修复”;UnicodeDecodeError“;在安装Textract时是否适用于电子书库?_Python_Pip_Package - Fatal编程技术网

Python “如何修复”;UnicodeDecodeError“;在安装Textract时是否适用于电子书库?

Python “如何修复”;UnicodeDecodeError“;在安装Textract时是否适用于电子书库?,python,pip,package,Python,Pip,Package,在Windows 10上尝试在pycharm中安装Textract软件包时,软件包安装程序会在README.md中返回EbookLib 0.15的UnicodeDecodeError 我尝试了以下提供的解决方案: 除了运行pip安装textract 在终端似乎没有安装实际的模块 E:\Main>pip install textract Requirement already satisfied: textract in e:\conda\lib\site-packages (1.6.1)

在Windows 10上尝试在pycharm中安装Textract软件包时,软件包安装程序会在README.md中返回EbookLib 0.15的UnicodeDecodeError

我尝试了以下提供的解决方案:

除了运行
pip安装textract
在终端似乎没有安装实际的模块

E:\Main>pip install textract
Requirement already satisfied: textract in e:\conda\lib\site-packages (1.6.1)
Requirement already satisfied: EbookLib==0.15 in e:\ebooklib-0.15 (from textract) (0.15)
Requirement already satisfied: python-pptx==0.6.5 in e:\conda\lib\site-packages (from textract) (0.6.5)
Requirement already satisfied: argcomplete==1.8.2 in e:\conda\lib\site-packages (from textract) (1.8.2)
Requirement already satisfied: docx2txt==0.6 in e:\conda\lib\site-packages (from textract) (0.6)
Requirement already satisfied: SpeechRecognition==3.6.3 in e:\conda\lib\site-packages (from textract) (3.6.3)
Requirement already satisfied: xlrd==1.0.0 in e:\conda\lib\site-packages (from textract) (1.0.0)
Requirement already satisfied: six==1.10.0 in e:\conda\lib\site-packages (from textract) (1.10.0)
Requirement already satisfied: chardet==2.3.0 in e:\conda\lib\site-packages (from textract) (2.3.0)
Requirement already satisfied: beautifulsoup4==4.5.3 in e:\conda\lib\site-packages (from textract) (4.5.3)
Requirement already satisfied: pocketsphinx==0.1.3 in e:\conda\lib\site-packages (from textract) (0.1.3)
Requirement already satisfied: lxml in e:\conda\lib\site-packages (from EbookLib==0.15->textract) (4.3.3)
Requirement already satisfied: XlsxWriter>=0.5.7 in e:\conda\lib\site-packages (from python-pptx==0.6.5->textract)
(1.1.8)
Requirement already satisfied: Pillow>=2.6.1 in e:\conda\lib\site-packages (from python-pptx==0.6.5->textract) (6.0
.0)
导入文本摘要 回溯(最近一次呼叫最后一次): 文件“E:/Main/Main.py”,第22行,在 导入文本摘要 ModuleNotFoundError:没有名为“textract”的模块 安装程序应该正确接收EbookLib版本并运行setup.py,但最终使用的是缓存的有缺陷的版本,而不是我解码的本地文件

Collecting EbookLib==0.15 (from textract)
  Using cached https://files.pythonhosted.org/packages/04/30/2cbf65fa9587a1ecc66a78eea91f9189ead8fdadd5e009115bce34529aa6/EbookLib-0.15.tar.gz

    ERROR: Complete output from command python setup.py egg_info:
    ERROR: Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\Feraz\AppData\Local\Temp\pycharm-packaging\EbookLib\setup.py", line 13, in <module>
        long_description = open('README.md').read(),
      File "E:\Python37\lib\encodings\cp1252.py", line 23, in decode
        return codecs.charmap_decode(input,self.errors,decoding_table)[0]
    UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 1671: character maps to <undefined>
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\Feraz\AppData\Local\Temp\pycharm-packaging\EbookLib\
收集电子书库==0.15(来自textract)
使用缓存https://files.pythonhosted.org/packages/04/30/2cbf65fa9587a1ecc66a78eea91f9189ead8fdadd5e009115bce34529aa6/EbookLib-0.15.tar.gz
错误:命令python setup.py egg_info的完整输出:
错误:回溯(最近一次呼叫上次):
文件“”,第1行,在
文件“C:\Users\Feraz\AppData\Local\Temp\pycharm packaging\EbookLib\setup.py”,第13行,在
long_description=open('README.md').read(),
文件“E:\Python37\lib\encodings\cp1252.py”,第23行,解码
返回编解码器.charmap\u解码(输入、自身错误、解码表)[0]
UnicodeDecodeError:“charmap”编解码器无法解码位置1671:字符映射到的字节0x8d
----------------------------------------
错误:命令“python setup.py egg\u info”失败,错误代码为1,位于C:\Users\Feraz\AppData\Local\Temp\pycharm packaging\EbookLib中\
Collecting EbookLib==0.15 (from textract)
  Using cached https://files.pythonhosted.org/packages/04/30/2cbf65fa9587a1ecc66a78eea91f9189ead8fdadd5e009115bce34529aa6/EbookLib-0.15.tar.gz

    ERROR: Complete output from command python setup.py egg_info:
    ERROR: Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\Feraz\AppData\Local\Temp\pycharm-packaging\EbookLib\setup.py", line 13, in <module>
        long_description = open('README.md').read(),
      File "E:\Python37\lib\encodings\cp1252.py", line 23, in decode
        return codecs.charmap_decode(input,self.errors,decoding_table)[0]
    UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 1671: character maps to <undefined>
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\Feraz\AppData\Local\Temp\pycharm-packaging\EbookLib\