修改代码错误
文章平均质量分 88
错落星辰.
python爱好者
展开
-
TypeError: bar() missing 1 required positional argument: ‘x‘
解决问题:TypeError: bar() missing 1 required positional argument: 'x'原创 2020-09-14 20:16:45 · 14843 阅读 · 4 评论 -
InvocationException: GraphViz‘s executables not found&&InvocationException: Program terminated with
通过pip安装了GraphViz模块后,当在决策树算法中显示决策树时出现错误:InvocationException: GraphViz’s executables not found此时我们需要下载安装GraphViz(这是一个独立软件)网址:https://graphviz.org/download/点击下图第三行链接:Stable Windows install packages点击找到下图路径:之后点击下载,下载后解压。记住下载存储的路径,将GraphViz安装目录的bin目录放到环原创 2020-09-04 21:01:09 · 400 阅读 · 0 评论 -
jupyter notebook更改默认路径-改为自己想要的路径
step1:在anaconda自带的终端手动生成jupyter notebook --generate-config.py文件step2:在C盘用户目录下找到…jupyter文件夹里面就有刚才生成的文件step3:用记事本打开该文件找到#c.NotebookApp.notebook_dir = ''这一行,将需要的路径写上去c.NotebookApp.notebook_dir =‘需要的路径’,记得去掉前面的#。step4:添加环境变量(以win10为例):此电脑→右键→属性→更改设置→高级→环原创 2020-09-02 18:42:02 · 1321 阅读 · 0 评论 -
Exception:jupyter command ‘jupyter-contrib‘not found
今天配置jupyter notebook时出现错误提示:Exception:jupyter command 'jupyter-contrib’not found运行完jupyter contrib nbextension install --user之后出现该错误,最后发现只需要将命令改为jupyter contrib-nbextension install --user因为我们安装的是jupyter-contrib-nbextension而不是jupyter-contrib。...原创 2020-09-02 16:37:51 · 1404 阅读 · 2 评论 -
AttributeError: ‘str‘ object has no attribute ‘shape‘
出现错误:AttributeError: ‘str’ object has no attribute ‘shape’解决方案:将后面的result改为result.array原创 2020-08-12 13:12:32 · 11382 阅读 · 0 评论 -
WARNING: You are using pip version 20.1.1; however, version 20.2.1 is available. You should consider
出现警告:解决方案:python -m pip install --upgrade pip原创 2020-08-12 11:23:28 · 653 阅读 · 0 评论 -
AttributeError:Can only use .str accessor with string values!
修改之前:出现错误:意为matches不是字符串则使用此方法错误修改方法:将最后两行代码改为:原创 2020-07-19 15:13:47 · 34975 阅读 · 3 评论