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 --------------------
相關文章
- Python3.7使用pip install xxxx報錯:UnicodeDecodeError: 'gbk' codec can't decode bytePythonUnicodeError
- Python報錯:UnicodeDecodeError: 'gbk' codec can't decode byte ...PythonUnicodeError
- 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
- Python——UnicodeEncodeError: 'ascii' codec can't encode/decode charactersPythonUnicodeErrorASCII
- 在執行 pip install 時遇到錯誤:python setup.py egg_info Check the logs for full command outputPython
- UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 0: invalid continuation byteUnicodeError
- PIP3安裝報錯nicodeDecodeError: 'ascii' codec can't decode byte 0xc3ErrorASCII
- 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
- Python讀取csv檔案出現解碼錯誤UnicodeDecodeError: ‘utf-8‘ codec can‘t decodPythonUnicodeError
- 【python爬蟲】用selenium爬時報錯UnicodeEncodeError: ‘gbk‘ codec can‘t encode character ‘\u2022‘Python爬蟲UnicodeError
- Fatal error: can't check configuration file '/home/watt/proxy/dError
- python cx_Oracle: UnicodeEncodeError: 'ascii' codec can't encode charactersPythonOracleUnicodeErrorASCII
- day1 UnicodeEncodeError: 'gbk' codec can't encode character '\xa0' in position 2490: illegal multi...UnicodeError
- PyMySQL 獲取資料 'utf-8' codec can't decode byte 0xed in position 2: 錯誤MySql
- django安裝mysqlclient報錯mand errored out with exit status 1: python setup.py egg_info Check the logs fDjangoMySqlclientErrorPython
- Python3解決UnicodeEncodeError: 'ascii' codec can't encode characters in position 0PythonUnicodeErrorASCII
- pip install scrapy報錯:error: UnableError
- 完美解決stack Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.ErrorPython
- Python:conda install 和pip install的區別Python
- Linux下python pip install失敗LinuxPython
- Error:Can't connect to SOCKS proxy:Connection refused (Connection refused)Error
- pip install METIS
- [mac pip錯誤]Can't connect to HTTPS URL because the SSL module is not availableMacHTTPAI
- 解決ERROR 1231 (42000): Variable 'time_zone' can'tError
- Dart: 開源了一個支援 stream 介面的 GBK codec, fast_gbkDartAST
- windows終端輸入pip install requests報錯:Fatal error in launcherWindowsError
- 升級pip報錯ERROR: Could not install packages due to an OSError: [WinError 5]ErrorPackage
- GTID複製報錯處理:Last_Error: Error 'Can't drop database 'test';ASTErrorDatabase
- pip install uwsgi==2.0.23
- Python 在 20201010 之後的 pip3 installPython
- pip install 提示:Could not install packages due to an EnvironmentErrorPackageError
- Python報UnicodeDecodeErrorPythonUnicodeError
- Composer 提示 zlib_decode (): data errorError
- pip install 改下載源方式
- 解決You should consider upgrading via the 'python -m pip install --upgrade pip' command. (pip工具版本較低導致)IDEPython
- MySQL報錯Table 'plugin' is read only [ERROR] Can't open the mysql.plugin table.MySqlPluginError