简体   繁体   中英

ImportError: cannot import name 'DtypeArg' from 'pandas

I'm using Pandas 1.3.2 in a Conda environment.

When importing pandas on a Jupyter Notebook:

import pandas as pd

I get the error:

ImportError: cannot import name 'DtypeArg' from 'pandas._typing' (C:\Users\tone_\anaconda3\envs\spyder\lib\site-packages\pandas\_typing.py)

I've seen similar questions, but so far no solution.

Can anyone help?

According to the answer provided in this post<\/a> it is a bug in pandas==1.3.1<\/code> .

当我将熊猫从 panadas=1.3.5 降级到 pandas=1.3.0 并且我正在使用 conda 环境时,它对我有用

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM