在用python3的可视化,需要导入matplotlib,在sublime text3编译时直接报错:

然后在终端导入运行正常,同时能够显示出matplotlib的查看器。那为什么会这样呢?

打印出来的错误时属性问题,就是在numbers中不存在Integral。但是并没有导入numbers,即使第三方中存在,在终端是正常。可能是文件中也存在numbers。导入numbers,同时在打印numbers的位置:print(numbers.__file__)。问题就是同个文件夹下存在numbers。

我搞不明白的一点是:sublime text3编译查询的顺序是怎么样?为什么在我没有导入的情况下,自己写的numbers会与第三方或者python3的numbers冲突?

如有明白的同行可否指点一二?

转载于:https://www.cnblogs.com/IT-DavidYang/p/7813028.html

AttributeError:module 'numbers' has no attribute 'Integral'.相关推荐

  1. AttributeError: module 'networkx' has no attribute 'draw_graphviz'解决方案

    环境: Python2.7 (64).ubuntu环境下 被运行的代码来自<Python自然语言处理>的P185-186,代码如下: P185-186.py import networkx ...

  2. 解决: AttributeError: module 'cv2' has no attribute 'SURF'

    AttributeError: module 'cv2' has no attribute 'SURF' 遇到该问题时,网友多是建议补个包,即pip install opencv-contrib-py ...

  3. AttributeError: module ‘seaborn‘ has no attribute ‘tsplot‘

    AttributeError: module 'seaborn' has no attribute 'tsplot' 问题: g = sns.tsplot(df['pm2.5']) plt.figur ...

  4. AttributeError: module ‘tensorflow‘ has no attribute ‘Session‘错误解决

    AttributeError: module 'tensorflow' has no attribute 'Session'错误解决 根据网上教程安装tensorflow环境时,最后都会有个测试代码用 ...

  5. Python 报错解决:AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

    早上升级完pip,后报错如下: -> # pip install --upgrade pwntools /usr/local/lib/python2.7/dist-packages/pip/_v ...

  6. AttributeError: module ‘sys‘ has no attribute ‘maxint‘

    AttributeError: module 'sys' has no attribute 'maxint' https://stackoverflow.com/questions/47027354/ ...

  7. AttributeError: module 'tensorflow' has no attribute 'random_normal'

    执行<TensorFlow实战Google深度学习框架(第2版)>only源代码 CH3 时如下语句报错 batch_size = 8 w1= tf.Variable(tf.random_ ...

  8. Python3 AttributeError: module 'cv2' has no attribute 'SIFT'

    参考 https://blog.csdn.net/yuxuan_08/article/details/87966840 在用python3使用sift = cv2.SIFT()进行SIFT时候,可能会 ...

  9. Python3异常-AttributeError: module ‘sys‘ has no attribute ‘setdefaultencoding‘

    Python3异常-AttributeError: module 'sys' has no attribute 'setdefaultencoding' 参考文章: (1)Python3异常-Attr ...

最新文章

  1. 蓝桥杯:入门训练 圆的面积
  2. Linux开启路由转发功能(透明代理环境搭建)
  3. Android Studio中引入RecyclerView的v7包
  4. MySQL中B-tree索引和Hash索引区别
  5. Qt文档阅读笔记-QThread::setPriority(Priority priority)官方解析及实例
  6. ShartPoin无法创建门户网站的问题
  7. 嵌入式Linux系统编程学习之六make工程管理和Makefile
  8. 指针和和一般的数据传递
  9. java怎么反编译_Java入门教程-Java的反编译
  10. 在Edge浏览器中设置编码方式
  11. dither(抖动)
  12. 微信小程序添加emoji表情组件,雪碧图版本
  13. 小红书笔记下沉怎么做到的?
  14. Cesium案例解析(七)——Layers在线地图服务
  15. JavaScript 获取当前日期——JS 中的今天日期
  16. Wannfly挑战赛20 A 染色
  17. Java基础之面向对象部分详解
  18. linux批量文件处理,Linux一行命令处理批量文件
  19. HBase2.x(十六) HBase与 Hive 的集成
  20. python3 selenium 模拟登陆 获取cookies 保存到redis(安居客)

热门文章

  1. U-boot中常用参数设定及常用宏的解释和说明
  2. 设计模式——控制反转依赖注入
  3. SQL - SQL 连接 JOIN 例解。(左连接,右连接,全连接,内连接,交叉连接,自连接)[转]...
  4. 国内做事就要高调——财富人生:邹果庆:中国新蛋网总裁
  5. 通过timer控件和窗体的opacity属性,轻松实现窗体的淡入淡出
  6. 时间戳显示为多少分钟前,多少天前的JS处理,JS时间格式化,时间戳的转换
  7. css3动画,监控动画执行完毕
  8. 数据库——MongoDB的安装
  9. 读书印记 - 《清醒:如何用价值观创造价值》
  10. Android错误之--activity_main cannot be resolved or is not a field