Python 3:在git克隆过程中安装requirements.txt时出错

时间:2019-11-28 05:26:25

标签: python setup.py git-clone python-unicode

在python3中安装requirements.txt时遇到以下错误。请帮我解决。谢谢

$ pip install -r requirements.txt
Collecting preprocessor
Using cached https://files.pythonhosted.org/packages/96/ad/d9f4ffb9bb97d1cb5bcb876b7932571d4dbaa3eff1701ad45d367f0ea27b/preprocessor-1.1.3.tar.gz
Collecting pandas
Using cached https://files.pythonhosted.org/packages/02/d0/1e8e60e61e748338e3a40e42f5dfeee63ccdecfc4f0894122b890bfb009a/pandas-0.25.3-cp37-cp37m-win_amd64.whl
Requirement already satisfied: xlsxwriter in c:\users\jyo27\appdata\local\programs\python\python37\lib\site-packages (from -r requirements.txt (line 3)) (1.2.6)
Collecting twython
Using cached https://files.pythonhosted.org/packages/8c/2b/c0883f05b03a8e87787d56395d6c89515fe7e0bf80abd3778b6bb3a6873f/twython-3.7.0.tar.gz
Collecting nltk
Using cached https://files.pythonhosted.org/packages/f6/1d/d925cfb4f324ede997f6d47bea4d9babba51b49e87a767c170b77005889d/nltk-3.4.5.zip
Collecting tweet-preprocessor
Using cached https://files.pythonhosted.org/packages/2a/f8/810ec35c31cca89bc4f1a02c14b042b9ec6c19dd21f7ef1876874ef069a6/tweet-preprocessor-0.5.0.tar.gz
ERROR: Command errored out with exit status 1:
command: 'c:\users\jyo27\appdata\local\programs\python\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\jyo27\AppData\Local\Temp\pip-install-p5zij9h7\tweet-preprocessor\setup.py'"'"'; file='"'"'C:\Users\jyo27\AppData\Local\Temp\pip-install-p5zij9h7\tweet-preprocessor\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\jyo27\AppData\Local\Temp\pip-install-p5zij9h7\tweet-preprocessor\pip-egg-info'
cwd: C:\Users\jyo27\AppData\Local\Temp\pip-install-p5zij9h7\tweet-preprocessor
Complete output (7 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\jyo27\AppData\Local\Temp\pip-install-p5zij9h7\tweet-preprocessor\setup.py", line 6, in
long_description = f.read()
File "c:\users\jyo27\appdata\local\programs\python\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 652: character maps to
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

0 个答案:

没有答案