【发布时间】: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
首先,我在终端检查了我的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