簡體   English   中英

無法安裝最新版本 pandas (1.0.3)

[英]Can't install last version of pandas (1.0.3)

在過去的兩天里,24/7 我正在嘗試處理 pandas 1.0.3 package 在 Python 3.6.0 中的安裝問題。 我將嘗試在下面描述整個情況。

在我的 PyCharm 中,我看到我可以將 pandas 從我使用的 0.25.3 升級到 1.0.3,但是一旦我嘗試了,就發生了錯誤。

升級 pandas 的可能性

一個錯誤

首先,我在終端中檢查了我的 python 的默認版本:

In: python -V
Out: Python 2.7

In: python3 -V
Out: Python 3.6.0

使用此 guid ,我將默認的 python 版本更改為 python 3.6。 這導致了這件事:

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' –

這是因為 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 版本,這應該可以解決。

您可以在此處看到從 pandas 1.0.0 開始的 Python 3.6.1 要求。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM