【问题标题】:Can't install last version of pandas (1.0.3)无法安装最新版本的 pandas (1.0.3)
【发布时间】:2020-08-07 23:31:42
【问题描述】:

过去两天,24/7 我正在尝试处理 Python 3.6.0 中安装 pandas 1.0.3 包的问题。我将尝试在下面描述整个情况。

在我的 PyCharm 中,我看到我可以将 pandas 从我使用的 0.25.3 升级到 1.0.3,但是一旦我尝试它就发生了错误。

possibility of an upgrade of pandas

an error

首先,我在终端检查了我的python的默认版本:

In: python -V
Out: Python 2.7

In: python3 -V
Out: Python 3.6.0

使用this guid 我已经更改了python 3.6 的默认python 版本。这导致了这件事:

In: python -V
Out: Python 3.6.0

但我仍然无法将 pandas 安装/升级到 1.0.3 版。

我已经在终端中尝试过这些命令:

pip install pandas
pip3 install pandas
pip install pandas==1.0.3
pip3 install pandas==1.0.3

同样的命令来自sudo

pip install /path_to_wheel

我总是遇到同样的错误:

ERROR: Could not find a version that satisfies the requirement pandas==1.0.3 (from versions: 0.1, 0.2b0, 0.2b1, 0.2, 0.3.0b0, 0.3.0b2, 0.3.0, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.5.0, 0.6.0, 0.6.1, 0.7.0rc1, 0.7.0, 0.7.1, 0.7.2, 0.7.3, 0.8.0rc1, 0.8.0rc2, 0.8.0, 0.8.1, 0.9.0, 0.9.1, 0.10.0, 0.10.1, 0.11.0, 0.12.0, 0.13.0, 0.13.1, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.15.2, 0.16.0, 0.16.1, 0.16.2, 0.17.0, 0.17.1, 0.18.0, 0.18.1, 0.19.0rc1, 0.19.0, 0.19.1, 0.19.2, 0.20.0rc1, 0.20.0, 0.20.1, 0.20.2, 0.20.3, 0.21.0rc1, 0.21.0, 0.21.1, 0.22.0, 0.23.0rc2, 0.23.0, 0.23.1, 0.23.2, 0.23.3, 0.23.4, 0.24.0rc1, 0.24.0, 0.24.1, 0.24.2, 0.25.0rc0, 0.25.0, 0.25.1, 0.25.2, 0.25.3)
ERROR: No matching distribution found for pandas==1.0.3

请帮忙。我不知道为什么会这样:(

更新:

也不行:

python3 -m pip install /Users/username/Downloads/pandas-1.0.3-cp36-cp36m-macosx_10_9_x86_64.whl 
Processing ./Downloads/pandas-1.0.3-cp36-cp36m-macosx_10_9_x86_64.whl
ERROR: Package 'pandas' requires a different Python: 3.6.0 not in '>=3.6.1' –

【问题讨论】:

  • 我遇到了类似的问题。在我升级 pip 后它起作用了。试试sudo pip3 install --upgrade pip 或者用 pip3 代替 pip。
  • 你修好了吗?

标签: python pandas python-2.7 installation python-3.6


【解决方案1】:

这是因为 pandas 1.0.x(和 1.1.0x)需要 Python 3.6.1 或更高版本。您正在使用 Python 3.6.0。这可以在您收到的错误消息中看到:

ERROR: Package 'pandas' requires a different Python: 3.6.0 not in '>=3.6.1' –

如果您更新您的 Python 版本,这应该可以解决。

您可以看到here 从 pandas 1.0.0 开始的 Python 3.6.1 要求。

【讨论】:

    猜你喜欢
    • 2021-12-20
    • 2018-10-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-08-01
    • 1970-01-01
    • 2022-06-14
    相关资源
    最近更新 更多