无法导入 Pandas 分析

Unable to import Pandas Profiling

我无法在 jupyter notebook 中导入 pandas 分析。有人可以告诉我怎么了。

conda install -c conda-forge pandas-profiling试试这个命令来安装 如果它不起作用,请尝试 pip install pandas-profiling

非常感谢所有试图帮助我的人。这有效。

import sys
!{sys.executable} -m pip install pandas-profiling

如果你 运行 jupyter notebook 那么:

python -m jupyter notebook

您可以这样安装软件包:

python -m pip install pandas-profiling

我遇到了很多麻烦,因为当我 运行 只有 jupyter notebook 时,jupyter notebook 的 'python' 是 python 的另一个安装,而不是我 bash。 如果你运行模块'jupyter notebook'和模块'pip'之前使用命令'python -m',你确保你使用的是相同的安装。

当然,您可以通过 pip 安装,但我喜欢使用 conda 进行尽可能多的安装,以帮助保持环境更易于使用。

conda 页面显示 pandas-分析的多个版本:https://anaconda.org/conda-forge/pandas-profiling

安装时需要指定最新的:

conda install -c conda-forge pandas-profiling=2.6.0

用最新版本替换2.6.0。

对于Mac

pip install pandas-profiling

以及 Ubuntu

!pip install pandas-profiling

有多种选择。

  1. 转到CMD,然后输入python -m pip install pandas-profiling

  2. 进入CMD & conda install -c conda-forge pandas-profiling=2.6.0

  3. import sys class in Jupyter note book & enter below line & enter !{sys.executable} -m pip install pandas-分析 以上用起来真爽

  4. 手册很少,但大部分时间都能用。 从 https://pypi.org/project/pandas-profiling/#modal-close 下载 pandas-配置文件库 提取并粘贴 C:\anaconda\Lib\site-packages 重新启动您的 Anaconda 并乐于使用。

希望对您有所帮助。

运行 "pip install pandas-profiling" 在 Anaconda 命令提示符中然后导入 panadas_profiling,它将起作用

有时候是版本问题。 试试这个

!pip install -U pandas-profiling

它对我有用。

如果您使用的是 Anaconda 发行版,那么请使用:

conda install -c conda-forge pandas-profiling

conda install -c conda-forge/label/cf201901 pandas-profiling

conda install -c conda-forge/label/cf202003 pandas-profiling

我遇到了同样的问题,它对我有用。