我正在试着安装熊猫版本。
!pip3 install pandas-profiling
>>
ERROR: Could not find a version that satisfies the requirement markupsafe~=2.1.1 (from pandas-profiling) (from versions: 0.9, 0.9.1, 0.9.2, 0.9.3, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.20, 0.21, 0.22, 0.23, 1.0, 1.1.0, 1.1.1, 2.0.0a1, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1)
ERROR: No matching distribution found for markupsafe~=2.1.1 (from pandas-profiling)
WARNING: You are using pip version 19.1.1, however version 21.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
我已经试过运行这段代码了
!pip3 install MarkupSafe==2.1.1
>>
ERROR: Could not find a version that satisfies the requirement MarkupSafe==2.1.1 (from versions: 0.9, 0.9.1, 0.9.2, 0.9.3, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.20, 0.21, 0.22, 0.23, 1.0, 1.1.0, 1.1.1, 2.0.0a1, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1)
ERROR: No matching distribution found for MarkupSafe==2.1.1
WARNING: You are using pip version 19.1.1, however version 21.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
发布于 2022-07-08 14:47:09
MarkupSafe 2.0.1 需要 Python >= 3.6。MarkupSafe 2.1.1 需要 Python >= 3.7。由此可以推断出您使用的是Python3.6。要么使用MarkupSafe 2.0.1,要么将Python升级到3.7+。
据报道,该漏洞是:https://github.com/ydataai/pandas-profiling/issues/1004
https://stackoverflow.com/questions/72912517
复制相似问题