1、pycharm同一目录下无法import已经存在的.py文件
解决:在当前文件下,右键找到mark Directory as source root
原因:项目根目录才会自动标记为source root,默认加到搜索路径中。其他目录需要手动加为source root才会加入搜索路径中。
2、UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xef in position 0: inva
解决:1、文件路径错误;2、csv格式直接改后缀造成文件错误,应另存为csv文件;3、编码格式略
3、ValueError: total size of new array must be unchanged
解决:reshape后的数组元素个数不能变,仅能改变形状
4、error: one of the arguments…
运行需要先输入参数的代码时,需要先通过以下方式输入参数
5、windows环境下安装MySQL出现的vcruntime140.dll缺失
1、新版本的MySQL不适用于VC2015,Mysql国内镜像:http://mirrors.sohu.com/mysql/MySQL-8.0/
2、.\mysqld --initialize-insecure --user=mysql 前面加上.\mysqld
3、Install/Remove of the Service Denied解决需要在管理员模式,shift右击打开的不是
6、TypeError: ‘builtin_function_or_method’ object is not subscriptable
解决:往往是方括号和圆括号使用混淆
pycharm常见问题(学习中持续更新)
最新推荐文章于 2023-03-31 17:39:51 发布