Pycharm
萧水雨寒
这个作者很懒,什么都没留下…
展开
-
解决UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xa8 in position 46: illegal multibyte sequence
问题描述:python3.7.8运行脚本(脚本中调用了log.conf配置表)时报错:UnicodeDecodeError: 'gbk' codec can't decode byte 0xa8 in position 46: illegal multibyte sequence问题解析:'gbk'中文编码问题,log.conf 配置表中含有中文字符解决方法:将log.conf配置表中的中文字符删除,重新运行脚本,问题解决...原创 2021-01-11 18:51:49 · 3502 阅读 · 0 评论 -
解决PyCharm安装成功后提示Error: Please select a valid Python interpreter 的问题no interpreter
https://blog.csdn.net/qq_37437892/article/details/80988856Cannot set up a python SDK at Python 3.9 (C:\Users\Administrator\AppData\Local\Microsoft\WindowsApp运行python脚本报错提示:No module named 'requests'检查是否已安装requests,参见:https://blog.cs...原创 2020-09-06 11:36:46 · 9689 阅读 · 0 评论 -
解决YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is u
问题描述:python脚本读取yaml文件时提示警告信息YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe.Please read https://msg.pyyaml.org/load for full details. yaml_dict = yaml.load(f)原因分析:yaml5.1版本后弃用了yaml.load(fi...原创 2020-09-06 11:20:24 · 7655 阅读 · 0 评论 -
解决Error running ‘serializers‘: Cannot run program“url...“:CreateProcess error=2, 系统找不到指定的文件。
Error running 'serializers': Cannot run program "C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps\python.exe" (in directory "E:\django_restful\api"):原创 2020-09-05 15:38:57 · 1204 阅读 · 0 评论 -
Pycharm提示Instance attribute users_index defined outside __init__
问题描述:Pycharm提示Instance attribute users_index defined outside __init__示例代码:class UserBehavior(TaskSet): def on_start(self): self.users_index = 0 #会出现下划线提示Instance attribute users_index defined outside __init__ self.group原创 2020-08-30 13:01:38 · 4239 阅读 · 0 评论