为什么我不能在云数据库上安装pandasprofing?

2024-04-29 07:56:09 发布

您现在位置:Python中文网/ 问答频道 /正文

我最喜欢的初始数据探索工具之一是:

错误消息:

!pip install pandas-profiling
Downloading/unpacking pandas-profiling
Could not find a version that satisfies the requirement pandas- profiling (from versions: 1.0.0a1, 1.0.0a2, 1.0.0a1, 1.0.0a2)
Cleaning up...
No distributions matching the version for pandas-profiling
Storing debug log for failure in /root/.pip/pip.log

Tags: installpip工具the数据log消息pandas
2条回答

pandas-profiling处于预发布阶段(开发状态-Alpha),具体如下link。在

尝试以下解决方案:

  1. 在笔记本中运行以下命令以显示错误消息中提到的调试日志:

    !cat /root/.pip/pip.log

    在调试日志中可以看到:

    Ignoring link https://pypi.python.org/packages/source/p/pandas-profiling/pandas-profiling-1.0.0a2.tar.gz#md5=ce6013c2600d6d0063ed773bf9e2a299 (from https://pypi.python.org/simple/pandas-profiling/), version 1.0.0a2 is a pre-release (use pre to allow)

  2. 修改install命令以包含 pre选项:

    !pip install pre pandas-profiling

由于我收到的bug报告很少,而且输出结果也只供人类使用,所以我将pandas的当前版本(1.3.0)设定为“稳定”阶段。如果前面的答案不能解决你的问题

相关问题 更多 >