cdqa-suite / cdQA

⛔ [NOT MAINTAINED] An End-To-End Closed Domain Question Answering System.
https://cdqa-suite.github.io/cdQA-website/
Apache License 2.0
614 stars 191 forks source link

can not use PIP to install #359

Open jeff18484 opened 4 years ago

jeff18484 commented 4 years ago

Trying to install CDQA but got below error: ERROR: Command errored out with exit status 1: command: 'd:\py\ana\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\jeff1\AppData\Local\Temp\pip-req-build-1xm_303u\setup.py'"'"'; file='"'"'C:\Users\jeff1\AppData\Local\Temp\pip-req-build-1xm_303u\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\jeff1\AppData\Local\Temp\pip-req-build-1xm_303u\pip-egg-info' cwd: C:\Users\jeff1\AppData\Local\Temp\pip-req-build-1xm_303u\ Complete output (16 lines): Traceback (most recent call last): File "d:\py\ana\lib\tokenize.py", line 390, in find_cookie line_string = line.decode('utf-8') UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd2 in position 16: invalid continuation byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\py\ana\lib\tokenize.py", line 454, in open
    encoding, lines = detect_encoding(buffer.readline)
  File "d:\py\ana\lib\tokenize.py", line 431, in detect_encoding
    encoding = find_cookie(first)
  File "d:\py\ana\lib\tokenize.py", line 395, in find_cookie
    raise SyntaxError(msg)
SyntaxError: invalid or missing encoding declaration for 'C:\\Users\\jeff1\\AppData\\Local\\Temp\\pip-req-build-1xm_303u\\setup.py'
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Looks to me it is encoding error but can not find the solution through internet. Any chance you can help?