当前位置:网站首页>UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0x98 in position 1093: illegal multibyte sequence
UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0x98 in position 1093: illegal multibyte sequence
2022-07-04 04:24:00 【Live like yourself】
It's not whether you also encountered this error .
If there is , So you're in the right place , Solve the problem once and for all .
without , You can also stop and have a look , In order to better solve possible problems in the future .
Catalog
The cause of the matter
It's in use python Problems encountered when installing third-party libraries , for example :pip install XXX
There was no problem before , Know once , That's the problem , But I don't remember changing the settings about coding ,,,
therefore ~~~
I started searching all over the browser , Of course , Also found a lot of solutions .
for example :
According to the error position , Index step by step , Until you find the place to open the file , hold encoding= Parameter set to ‘utf8’, Or other Chinese character sets ( Everything ).
reinstall pip...
Reset the system default encoding character set ...
notes : It is not recommended to try any of the above methods .
First, it cannot fundamentally solve the problem .
Second, some methods can't solve the problem at all .
Cause analysis
I don't say much nonsense , Get down to business :
The reason is the problem of the encoding and decoding method of the system ( Because I tried , hold pip Reinstallation still won't solve the problem 【 At that time, it was suspected that it was relying on conflict , So I put anaconda It was reinstalled ~~~】, But none of them solved the problem )
therefore !!!
We need to change the encoding and decoding method of the system .
resolvent
Add environment variables
As shown in the figure : stay System environment Add the following variables to .
The last step : Restart the computer !( It won't work without a restart )
review
Don't modify the source code of the library too much , Not a long-term practice , Not necessarily right , Unless it's the operating system .
QQ:1757093754
Welcome to exchange ! Study !
边栏推荐
- leetcode刷题:二叉树04(二叉树的层序遍历)
- 程序员远程办公喜忧参半| 社区征文
- RHCSA 06 - suid, sgid, sticky bit(待补充)
- 普源DS1000Z系列数字示波器在通信原理实验中的应用方案
- Redis:集合Set类型数据的操作命令
- I was tortured by my colleague's null pointer for a long time, and finally learned how to deal with null pointer
- 干货!基于GAN的稀有样本生成
- leetcode刷题:二叉树06(对称二叉树)
- Katalon中控件的参数化
- Two sides of the evening: tell me about the bloom filter and cuckoo filter? Application scenario? I'm confused..
猜你喜欢
Flink学习6:编程模型
Pointer array and array pointer
架构训练毕业设计+总结
Parameterization of controls in katalon
The three-year revenue is 3.531 billion, and this Jiangxi old watch is going to IPO
NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
Leetcode skimming: binary tree 04 (sequence traversal of binary tree)
02 ls 命令的具体实现
2021 RSC | Drug–target affinity prediction using graph neural network and contact maps
毕业设计项目
随机推荐
Redis:集合Set类型数据的操作命令
10 reasons for not choosing to use free virtual hosts
Storage of MySQL database
Ppt tutorial, how to save a presentation as a PDF file in PowerPoint?
I Build a simple microservice project
Use NRM and NVM to manage your NPM source and node versions
(指针)编写函数void fun(int x,int *pp,int *n)
干货!基于GAN的稀有样本生成
一位毕业生的自我分享
How was my life in 2021
Idea modify body color
Understand the principle of bytecode enhancement technology through the jvm-sandbox source code
R语言中如何查看已安装的R包
RHCSA 07 - 用户与群组管理
Keysight N9320B射频频谱分析仪解决轮胎压力监测方案
Small record of thinking
96% of the collected traffic is prevented by bubble mart of cloud hosting
leetcode刷题:二叉树07(二叉树的最大深度)
LNK2038 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MDd_DynamicDebug”(main.obj 中)
Perf simple process for multithreaded profile