非常感谢所有试图帮助我的人。这个方法有效。
import sys
!{sys.executable} -m pip install pandas-profiling
当然,您可以通过pip安装,但我更喜欢尽可能多地使用conda来帮助保持环境更易于使用。
conda页面显示了多个版本的pandas-profiling: 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
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
我遇到了同样的问题,以下方法对我有效。
conda install -c conda-forge pandas-profiling
是安装pandas-profiling的命令。如果该命令不起作用,请尝试使用pip install pandas-profiling
pandas_profiling
,因此没有必要将其作为答案提供。 - Arpit Solankipython -m jupyter notebook
python -m pip install pandas-profiling
jupyter notebook
时,jupyter笔记本中的“python”与我的bash上安装的不同,这让我很困扰。
如果你在运行模块“jupyter notebook”和命令“pip”之前使用命令“python -m”,你可以确保使用相同的安装程序。!pip install -U pandas-profiling
它适用于我。
在CMD中输入python -m pip install pandas-profiling
在CMD中输入conda install -c conda-forge pandas-profiling=2.6.0
在Jupyter笔记本中导入sys类,并输入以下命令: !{sys.executable} -m pip install pandas-profiling 这很酷,易于使用。
稍微手动一些,但大部分时间都有效。 从 https://pypi.org/project/pandas-profiling/#modal-close 下载pandas-profile库, 并将其解压缩并粘贴到C:\anaconda\Lib\site-packages中。 重新启动Anaconda,欢快地使用吧。
你可以将Anaconda Prompt以管理员身份运行,然后执行以下命令: conda intall -c anaconda pandas-profiling
在运行过程中,可能会要求更新当前的库,请选择“y”进行更新。 完成后,转到Jupyter Notebook并执行“import pandas_profiling”
希望它能正常工作!!
pandas_profiling
?如果是,请在问题中提到。 - Arpit Solanki