pip install ... ERROR: UnicodeDecodeError: ‘gbk‘ codec can‘t decode/ python setup.py egg_info Check
1. pip install 安裝包報錯如下
ERROR: UnicodeDecodeError: 'gbk' codec can't decode/ python setup.py egg_info Check
(base) C:\Users\user>pip download igramscraper
Collecting igramscraper
Using cached igramscraper-0.3.5.tar.gz (24 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\user\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-download-zwiz5cy9\\igramscraper\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-download-zwiz5cy9\\igramscraper\\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\user\AppData\Local\Temp\pip-pip-egg-info-rqfp96y7'
cwd: C:\Users\user\AppData\Local\Temp\pip-download-zwiz5cy9\igramscraper\
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\user\AppData\Local\Temp\pip-download-zwiz5cy9\igramscraper\setup.py", line 8, in <module>
long_description=Path("README.md").read_text(),
File "c:\users\user\anaconda3\lib\pathlib.py", line 1200, in read_text
return f.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa4 in position 721: illegal multibyte sequence
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
報錯圖片如下:
2.解決方案
根據報錯提示,應該是 README.md這個檔案編解碼報錯的問題 (UnicodeDecodeError: 'gbk' codec can't decode),
解決方案:
1、下載好安裝包的壓縮包
2、進入報錯位置,進行處理, 這裡我選擇註釋掉(1.註釋報錯行程式碼 or 2.清空README.md檔案)
3、命令列執行安裝壓縮包 pip install instagram-scraper-master.zip
-------------- END --------------------
相關文章
- pip install 報錯UnicodeDecodeError: 'ascii' codec can't decode byteUnicodeErrorASCII
- Python報錯:UnicodeDecodeError: 'gbk' codec can't decode byte ...PythonUnicodeError
- Python3.7使用pip install xxxx報錯:UnicodeDecodeError: 'gbk' codec can't decode bytePythonUnicodeError
- pipenv install error UnicodeDecodeError: 'utf8' codec can't decode byte 0xb4 in positionErrorUnicode
- Python讀取檔案時出現UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position xx: 解決方案PythonUnicodeError
- 在執行 pip install 時遇到錯誤:python setup.py egg_info Check the logs for full command outputPython
- Python——UnicodeEncodeError: 'ascii' codec can't encode/decode charactersPythonUnicodeErrorASCII
- PIP3安裝報錯nicodeDecodeError: 'ascii' codec can't decode byte 0xc3ErrorASCII
- UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 0: invalid continuation byteUnicodeError
- Python讀取csv檔案出現解碼錯誤UnicodeDecodeError: ‘utf-8‘ codec can‘t decodPythonUnicodeError
- python在用pandas對csv檔案處理的時候報UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xb6。。。的錯誤PythonUnicodeError
- tensorflow讀取圖片時出現錯誤UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid sUnicodeError
- Fatal error: can't check configuration file '/home/watt/proxy/dError
- 異常: 'ascii' codec can't encode charactersASCII
- json.dumps錯誤:'utf8' codec can't decode byte解決方案JSON
- django安裝mysqlclient報錯mand errored out with exit status 1: python setup.py egg_info Check the logs fDjangoMySqlclientErrorPython
- day1 UnicodeEncodeError: 'gbk' codec can't encode character '\xa0' in position 2490: illegal multi...UnicodeError
- python cx_Oracle: UnicodeEncodeError: 'ascii' codec can't encode charactersPythonOracleUnicodeErrorASCII
- python報錯問題解決:'ascii' codec can't encode characterPythonASCII
- PyMySQL 獲取資料 'utf-8' codec can't decode byte 0xed in position 2: 錯誤MySql
- 【python爬蟲】用selenium爬時報錯UnicodeEncodeError: ‘gbk‘ codec can‘t encode character ‘\u2022‘Python爬蟲UnicodeError
- pip install scrapy報錯:error: UnableError
- 完美解決stack Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.ErrorPython
- [ERROR] Can't open the mysql.plugin tableErrorMySqlPlugin
- mha_replication_check Can't exec "mysqlbinlog": No such file or directoryMySql
- Python3解決UnicodeEncodeError: 'ascii' codec can't encode characters in position 0PythonUnicodeErrorASCII
- errors in crontab file, can't install. - linux crontabErrorLinux
- mysql [ERROR] Can't create IP socket: Permission deniedMySqlError
- ERROR in Entry module not found Error Can't resolve 'babel' in ' UseErrorBabel
- Python:conda install 和pip install的區別Python
- [筆記].痛哉!!!Error: Can't access JTAG chain, Error: Operation failed筆記ErrorAI
- Mysql報錯Fatal error:Can't open and lock privilege tablesMySqlError
- mysql can't connect error about privilege----not root userMySqlError
- pip install METIS
- Linux下python pip install失敗LinuxPython
- ?Error: Can't locate /etc/centreon/conf.pm in @INC (@INError
- windows終端輸入pip install requests報錯:Fatal error in launcherWindowsError
- [mac pip錯誤]Can't connect to HTTPS URL because the SSL module is not availableMacHTTPAI