seaborn python模块有问题吗

seaborn python模块有问题吗,python,data-visualization,seaborn,Python,Data Visualization,Seaborn,我今天开始了一个个人项目,从这里开始学习教程 但我在一开始就遇到了一个问题,我不知道为什么,我想这与模块有关,但我安装了所有模块 import matplotlib.pyplot as plt import seaborn as sns import pandas as pd import nbashots as nba # this will throw a warning if using matplotlib 1.5 curry_id = nba.get_player_id(&quo

我今天开始了一个个人项目,从这里开始学习教程
但我在一开始就遇到了一个问题,我不知道为什么,我想这与模块有关,但我安装了所有模块

import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
import nbashots as nba # this will throw a warning if using matplotlib 1.5



curry_id = nba.get_player_id("Curry, Stephen")[0]
curry_id
我运行了这个程序,得到了这个错误

Traceback (most recent call last):
  File "C:\Users\carlo\Downloads\ye.py", line 2, in <module>
    import seaborn as sns
  File "C:\Users\carlo\AppData\Local\Programs\Python\Python38\lib\site-packages\seaborn\__init__.py", line 5, in <module>
    from .categorical import *
  File "C:\Users\carlo\AppData\Local\Programs\Python\Python38\lib\site-packages\seaborn\categorical.py", line 7, in <module>
    from pandas.core.series import remove_na
ImportError: cannot import name 'remove_na' from 'pandas.core.series' (C:\Users\carlo\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\series.py)
回溯(最近一次呼叫最后一次):
文件“C:\Users\carlo\Downloads\ye.py”,第2行,在
导入seaborn作为sns
文件“C:\Users\carlo\AppData\Local\Programs\Python38\lib\site packages\seaborn\\uuuuuuu init\uuuuuuuuu.py”,第5行,在
从。分类导入*
文件“C:\Users\carlo\AppData\Local\Programs\Python38\lib\site packages\seaborn\category.py”,第7行,在
从pandas.core.series导入删除\u na
ImportError:无法从“pandas.core.series”(C:\Users\carlo\AppData\Local\Programs\Python\Python38\lib\site packages\pandas\core\series.py)导入名称“remove\na”)

检查本教程中使用的Pandas、matplotlib、seaborn版本以及您正在使用的版本。如果存在冲突,首先使用
pandas
seaborn
的特定版本创建
conda
环境

例如,您可以执行以下操作:

conda create-n myenv python=3.7 scipy=0.15.0

一旦您将环境激活为
conda activate myenv
,您就可以搜索安装包的
conda
。它将检查依赖性问题,并根据
python
版本和其他所有已安装的软件包安装新软件包。因此,当您安装新软件包时,它们将与您的需要兼容,但您需要找到其中任何一个软件包的版本。

也许可以检查您安装的pandas版本。我需要检查什么?据我所知,seaborn试图从熊猫身上进口一些东西,但找不到。这建议使用pip3重新安装。