为了账号安全,请及时绑定邮箱和手机立即绑定

安装 pdfminer3k出错,好像是编码问题,请问怎么解决?

安装 pdfminer3k出错,好像是编码问题,请问怎么解决?

Eddy_N 2017-09-14 20:19:26
running installrunning bdist_eggrunning egg_infowriting dependency_links to pdfminer3k.egg-info\dependency_links.txtwriting top-level names to pdfminer3k.egg-info\top_level.txtwriting requirements to pdfminer3k.egg-info\requires.txtwriting pdfminer3k.egg-info\PKG-INFOreading manifest file 'pdfminer3k.egg-info\SOURCES.txt'reading manifest template 'MANIFEST.in'writing manifest file 'pdfminer3k.egg-info\SOURCES.txt'installing library code to build\bdist.win-amd64\eggrunning install_librunning build_pyinstalling scripts to build\bdist.win-amd64\egg\EGG-INFO\scriptsrunning install_scriptsrunning build_scriptscopying and adjusting tools\pdf2txt.py -> build\scripts-3.5Traceback (most recent call last):  File "C:\Users\name\AppData\Local\Programs\Python\Python35\lib\distutils\command\build_scripts.py", line 114, in copy_scripts    shebang.decode('utf-8')UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 11: invalid start byteDuring handling of the above exception, another exception occurred:Traceback (most recent call last):  File "setup.py", line 51, in <module>    'Topic :: Text Processing'  File "C:\Users\name\AppData\Local\Programs\Python\Python35\lib\distutils\core.py", line 148, in setup    dist.run_commands()  File "C:\Users\name\AppData\Local\Programs\Python\Python35\lib\distutils\dist.py", line 955, in run_commands    self.run_command(cmd)  File "C:\Users\name\AppData\Local\Programs\Python\Python35\lib\distutils\dist.py", line 974, in run_command    cmd_obj.run()  File "C:\Users\name\AppData\Local\Programs\Python\Python35\lib\site-packages\setuptools\command\install.py", line 67, in run    self.do_egg_install()  File "C:\Users\name\AppData\Local\Programs\Python\Python35\lib\site-packages\setuptools\command\install.py", line 109, in do_egg_install    self.run_command('bdist_egg')  File "C:\Users\name\AppData\Local\Programs\Python\Python35\lib\distutils\cmd.py", line 313, in run_command    self.distribution.run_command(command)  File "C:\Users\name\AppData\Local\Programs\Python\Python35\lib\distutils\dist.py", line 974, in run_command    cmd_obj.run()  File "C:\Users\name\AppData\Local\Programs\Python\Python35\lib\site-packages\setuptools\command\bdist_egg.py", line 191, in run    no_ep=1)  File "C:\Users\name\AppData\Local\Programs\Python\Python35\lib\site-packages\setuptools\command\bdist_egg.py", line 147, in call_command    self.run_command(cmdname)  File "C:\Users\name\AppData\Local\Programs\Python\Python35\lib\distutils\cmd.py", line 313, in run_command    self.distribution.run_command(command)  File "C:\Users\name\AppData\Local\Programs\Python\Python35\lib\distutils\dist.py", line 974, in run_command    cmd_obj.run()  File "C:\Users\name\AppData\Local\Programs\Python\Python35\lib\site-packages\setuptools\command\install_scripts.py", line 21, in run    orig.install_scripts.run(self)  # run first to set up self.outfiles  File "C:\Users\name\AppData\Local\Programs\Python\Python35\lib\distutils\command\install_scripts.py", line 43, in run    self.run_command('build_scripts')  File "C:\Users\name\AppData\Local\Programs\Python\Python35\lib\distutils\cmd.py", line 313, in run_command    self.distribution.run_command(command)  File "C:\Users\name\AppData\Local\Programs\Python\Python35\lib\distutils\dist.py", line 974, in run_command    cmd_obj.run()  File "C:\Users\name\AppData\Local\Programs\Python\Python35\lib\distutils\command\build_scripts.py", line 50, in run    self.copy_scripts()  File "C:\Users\name\AppData\Local\Programs\Python\Python35\lib\distutils\command\build_scripts.py", line 118, in copy_scripts    "from utf-8".format(shebang))ValueError: The shebang (b'#!C:\\Users\\\xc0\xcb\xc0\xcb\xc9\xa7\xc9\xa7\\AppData\\Local\\Programs\\Python\\Python35\\python.exe\n') is not decodable from utf-8C:\chajian\pdfminer3k>
查看完整描述

目前暂无任何回答

  • 0 回答
  • 0 关注
  • 1340 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信