在安装带有pip的cdqa时,如何修复“Command errored out with exit status 1”错误?

2024-09-27 00:18:06 发布

您现在位置:Python中文网/ 问答频道 /正文

{I}正在尝试使用python命令在Windows中安装:

> pip install cdqa

但我有个错误。 以下是完整日志:

Collecting cdqa
  Using cached https://files.pythonhosted.org/packages/c2/02/ff021d2a34da02090b1e949e0edf354252668fb006e326def5c5e2b2bdcd/cdqa-1.3.5.tar.gz
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\hys\\AppData\\Local\\Temp\\pip-install-hzqdnquc\\cdqa\\setup
.py'"'"'; __file__='"'"'C:\\Users\\hys\\AppData\\Local\\Temp\\pip-install-hzqdnquc\\cdqa\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().repl
ace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\hys\AppData\Local\Temp\pip-install-hzqdnquc\cdqa\pip-
egg-info'
         cwd: C:\Users\hys\AppData\Local\Temp\pip-install-hzqdnquc\cdqa\
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\hys\AppData\Local\Temp\pip-install-hzqdnquc\cdqa\setup.py", line 14, in <module>
        long_description=read("README.md"),
      File "C:\Users\hys\AppData\Local\Temp\pip-install-hzqdnquc\cdqa\setup.py", line 6, in read
        return open(os.path.join(os.path.dirname(__file__), file)).read()
    UnicodeDecodeError: 'cp949' codec can't decode byte 0xf0 in position 2685: illegal multibyte sequence
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

我不知道该怎么办。在


Tags: installpipinpyreadegglocalsetup

热门问题