Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not use PIP to install #359

Open
jeff18484 opened this issue Apr 5, 2020 · 0 comments
Open

can not use PIP to install #359

jeff18484 opened this issue Apr 5, 2020 · 0 comments

Comments

@jeff18484
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant