ImportError: cannot import name 'DtypeArg' from 'pandas

目录

ImportError: cannot import name 'DtypeArg' from 'pandas

问题:

解决:

完整错误:


问题:

import pandas as pd

解决:

这是Pandas==1.3.1中的一个bug。

一个可能的解决方案是将其降级到某个早期版本,例如pip install pandas==1.3.0

或者直接pip install pandas

完整错误:

Traceback (most recent call last):
  File "test.py", line 2, in <module>
    import pandas as pd
  File "D:\anaconda\envs\deploy_test\lib\site-packages\pandas\__init__.py", line 142, in <module>
    from pandas.io.api import (
  File "D:\anaconda\envs\deploy_test\lib\site-packages\pandas\io\api.py", line 8, in <module>
    from pandas.io.excel import ExcelFile, ExcelWriter, read_excel
  File "D:\anaconda\envs\deploy_test\lib\site-packages\pandas\io\excel\__init__.py", line 1, in <module>
    from pandas.io.excel._base import ExcelFile, ExcelWriter, read_excel
  File "D:\anaconda\envs\deploy_test\lib\site-packages\pandas\io\excel\_base.py", line 32, in <module>
    from pandas.io.parsers import TextParser
  File "D:\anaconda\envs\deploy_test\lib\site-packages\pandas\io\parsers\__init__.py", line 1, in <module>
    from pandas.io.parsers.readers import (
  File "D:\anaconda\envs\deploy_test\lib\site-packages\pandas\io\parsers\readers.py", line 17, in <module>
    from pandas._typing import (
ImportError: cannot import name 'DtypeArg' from 'pandas._typing' (D:\anaconda\envs\deploy_test\lib\site-packages\pandas\_typing.py)

参考:ImportError: cannot import name 'DtypeArg' from 'pandas

参考:pandas

ImportError: cannot import name ‘DtypeArg‘ from ‘pandas相关推荐

  1. Pandas报错:ImportError: cannot import name ‘is_url‘ from ‘pandas.io.common‘

    问题详情: ImportError: cannot import name 'is_url' from 'pandas.io.common' (D:\Python\Anaconda3\lib\site ...

  2. (2020.1.13已解决)ImportError: cannot import name 'StringIO'

    20200206 更新 这个问题关注的人比较多,特地加一句. 这个问题基本可以确定是tushare和pandas版本匹配问题.因为tushare本身有调用pandas,随着tushare版本更新,其调 ...

  3. 安装 sklearn 报错 ImportError: cannot import name Type

    1. 安装 sklearn sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple sklearn 会默认安装 joblib , s ...

  4. Anaconda3-5.0.1 输入ipython 出现 ImportError: cannot import name ‘create_prompt_application‘

    在 Windows 系统上安装 Anaconda3-5.0.1 版本后,输入 ipython 结果出现如下错误: (G:\Anaconda3-5.0.1\install) C:\Users\wohu& ...

  5. Pip install: ImportError: cannot import name IncompleteRead

    我在Ubuntu 14.04 64bit上安装python开发环境的过程中遇到如下错误: Pip install: ImportError: cannot import name Incomplete ...

  6. import keras 报错 ImportError: cannot import name ‘urlopen‘

    详细报错信息 packages\tensorflow\python\keras\_impl\keras\utils\data_utils.py", line 40, in <modul ...

  7. ImportError: cannot import name ‘secure_filename‘的解决办法

    ImportError: cannot import name 'secure_filename'的解决办法 导入模块 from werkzeug import secure_filename 出现以 ...

  8. Tensorflow 源码安装成功,导入报错 ImportError: cannot import name 'build_info'

    ImportError: cannot import name 'build_info' ImportError: Could not import tensorflow. Do not import ...

  9. Python-PyCharm 报错解决:ImportError: cannot import name 'InteractiveConsole' from 'code'

    此文首发于我的个人博客:Python-PyCharm 报错解决:ImportError: cannot import name 'InteractiveConsole' from 'code' - z ...

最新文章

  1. 普渡大学计算机硕士申请条件,普渡大学计算机与信息技术理学硕士研究生申请要求及申请材料要求清单...
  2. 这是我看过,最好懂的神经网络
  3. wukong引擎源码分析之搜索——docid有序的数组里二分归并求交集,如果用跳表的话,在插入索引时会更快...
  4. Oracle E-Business Suite 12.1.1 Rapid Clone
  5. 如何理解SVM | 支持向量机之我见
  6. Mono项目的新进展
  7. oracle添加男女约束,Oracle如何给数据库添加约束过程解析
  8. nfc pm3 模拟加密门禁卡_手机/手环NFC模拟加密门禁卡电梯卡最全教程之初期判断...
  9. 2012年度优秀软件企业、优秀软件人才和优秀软件产品
  10. 益智类游戏关卡设计:逆推法--巧解益智类游戏关卡设计
  11. 利用Python爬虫批量下载百度图库图片
  12. esp32运行linux,ubuntu系统搭建ESP32 开发环境
  13. 爬取动态网站阿里巴巴(1688)商家公司名称及联系方式
  14. PMIC 配置VIN0 VIN1选择
  15. 阿里云香港服务器购买教程(图文)
  16. 对接微信支付之网页支付详解
  17. win10的创建还原点系统恢复和dism++的系统备份和恢复比较
  18. 负载均衡常用流量分发方式
  19. 买电脑时,i5和i7处理器有什么区别?
  20. 项目该如何着手_着手服务组件架构

热门文章

  1. 树莓派4装Ubuntu
  2. lua入门1 helloworld
  3. shell 中一个进制转换的小技巧
  4. 将linux的debug串口用于console和应用串口复用的方法
  5. c语言将字母存入字符串,C语言把资料读入字符串以及将字符串写入文件
  6. python编写脚本方法_使用Python编写提取日志中的中文的脚本的方法
  7. 《孤独是一个人的清欢》读书感悟
  8. android 锁屏画面开发,android 锁屏应用开发
  9. PVN3D: 基于Deep Point-wise 3D关键点投票的6D姿态估计网络(香港科技大学提出)
  10. html中列表的嵌套