当前位置:网站首页>One trick to cure pycharm DEBUG error UnicodeDecodeError: 'utf-8' codec can't decode
One trick to cure pycharm DEBUG error UnicodeDecodeError: 'utf-8' codec can't decode
2022-08-04 22:19:00 【I am a lion fighting a rabbit】
Project Scenario:
pycharm Professional Edition runs deep learning projects
Problem description
This problem is utterly disgusting. It's disgusting that RUN does not report an error, but when trying to DEBUG, it reports an error, and it does not show where the error is. This leads to long codes that can only be modified by experience, and people will be stupid.
Baidu has a bunch of answers as follows:
The first solution: nothing more thanChanged the code to UTF-8, and changed many places, it is useless at all
The second solution: check whether the path contains Chinese, I will not make such a low-level mistake
The third solution: try to restart the computer,Restart pycharm, or reload pycharm directly, for this kind of suggestion, I can only say: GUN
Solution:
Finally, go directly to the source code of the bottom layer of DEBUG:
r = r.decode('utf-8')# Change to the followingr = r.decode('utf-8', 'ignore')
That is to ignore this error directly. After all, it can be RUN, and the code is no problem, why not let DEBUG.
边栏推荐
- synchronized和ReentrantLock都很丝滑,因为他们都是可重入锁,一个线程多次拿锁也不会死锁,我们需要可重入
- 【C - 基本概念】
- 【TCP/IP 四 IP 网际协议】
- Autowired自动装配
- Oracle增加表空间解决ORACLE ORA-01653: unable to extend table报错
- 快速web开发框架——learun framework
- 得不到你的心,就用“分布式锁”锁住你的人
- Driving point cloud format changes bring efficiency improvement
- Exploration and Practice of Database Governance
- OC-归档(序列化)(了解的不多 没细看)
猜你喜欢
随机推荐
力扣19-删除链表的倒数第 N 个结点——链表
LeetCode143:重排链表
《剑指offer》刷题分类
双非读者,一举拿下阿里、字节、美团、京东、虾皮offer
Analysis and treatment of Ramnit infectious virus
The Record of Reminding myself
Lecture 2 Software Life Cycle
rk3399-0.0 svc命令
Unknown point cloud structure file conversion requirements
com.jacob.com.ComFailException: Invoke of: ActiveDocument
PowerBI scripture series
Hardware factors such as CPU, memory, and graphics card also affect the performance of your deep learning model
As hot as ever, reborn | ISC2022 HackingClub White Hat Summit was successfully held!
基于事实的讨论
shell选择结构(if)
Qiangwang Cup 2022 - WEB
ES6高级-async的用法
Autowired自动装配
Is the International Project Manager PMP certificate worth taking?
国内的PMP证书含金量到底如何