无法在spyder中安装pandas_profiling
如果您能告诉我如何在spyder中安装pandas分析
也仅使用Spyder、Spyder IDE
尝试过这些:
pip install pandas-profiling
pip install pandas_profiling==2.5.0
pip install https://github.com/ydataai/pandas-profiling/archive/master.zip
尝试从 pandas_profiling_master 运行 setup.py
这来了:
Collecting pandas-profiling
Using cached pandas_profiling-3.2.0-py2.py3-none-any.whl (262 kB)
Requirement already satisfied: jinja2>=2.11.1 in c:\users\asus\appdata\local\programs\spyder\pkgs (from pandas-profiling) (3.1.2)
Collecting tqdm>=4.48.2
Using cached tqdm-4.64.0-py2.py3-none-any.whl (78 kB)
Requirement already satisfied: markupsafe~=2.1.1 in c:\users\asus\appdata\local\programs\spyder\pkgs (from pandas-profiling) (2.1.1)
Collecting visions[type_image_path]==0.7.4
Using cached visions-0.7.4-py3-none-any.whl (102 kB)
Collecting htmlmin>=0.1.12
Using cached htmlmin-0.1.12.tar.gz (19 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
Note: you may need to restart the kernel to use updated packages.
error: subprocess-exited-with-error
python setup.py egg_info did not run successfully.
exit code: 1
[6 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\Asus\AppData\Local\Temp\pip-install-kxfhoo5r\htmlmin_c9d69781ba1c4bc19ec6208da42060a8\setup.py", line 4, in <module>
from htmlmin import __version__
ModuleNotFoundError: No module named 'htmlmin'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error while generating package metadata.
See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details
谢谢
我试图安装
ydata-profiling
,这是 pandas-profiling 的最新版本,但我没有安装任何以前版本的 htmlmin
。我遇到了与您相同的错误。
我必须先安装
django-htmlmin
,但它返回一个错误,说 0.11.0 版本对于 ydata-profiling 来说太旧了,但它似乎已经可以调用自己了,所以我可以安装 htmlmin (来自 git)并且它有效。
之后安装 ydata-profiling 就变得像往常一样简单了
pip install ydata-profiling