Pip install pandas:安装依赖错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/49694833/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Pip install pandas: installing dependencies error
提问by Dee
I am trying to pip install pandas
in a virtual environment but I am having an error I really do not understand.
我正在尝试pip install pandas
在虚拟环境中,但我遇到了一个我真的不明白的错误。
I am guessing it has something to do with the Double requirement given
but I really do not know where to go from here.
我猜这与 the有关,Double requirement given
但我真的不知道从哪里开始。
采纳答案by u4359712
I met the same error on Python3.4.
我在 Python3.4 上遇到了同样的错误。
And the root cause of this error is that
而这个错误的根本原因是
"pandas 0.21-0.22 no longer supports Python 3.4"
“Pandas 0.21-0.22 不再支持 Python 3.4”
See more about this issue:
查看有关此问题的更多信息:
https://github.com/pandas-dev/pandas/issues/20775
Problem with installing pandas for Python 3.4
You get the error "Double requirement given: numpy ..." The reason for this error is that pandas 0.21-0.22 no longer supports Python 3.4, and thus no longer distributes binary wheels for Python 3.4. Therefore, pip tries to install pandas from source, and this is what now started to fail with Pip version 10. You can check your python version.
https://github.com/pandas-dev/pandas/issues/20775
为 Python 3.4 安装 Pandas 的问题
您会收到错误“给出的双重要求:numpy ...” 此错误的原因是 Pandas 0.21-0.22 不再支持 Python 3.4,因此不再为 Python 3.4 分发二进制轮子。因此,pip 尝试从源代码安装 Pandas,这就是现在 Pip 版本 10 开始失败的原因。您可以检查您的 python 版本。
$ python --version
Python 3.4.3
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.5
After you install python 3.5, you can install pandas successfully in a virtual environment(with Python 3.5).
安装python 3.5后,可以在虚拟环境中成功安装pandas(使用Python 3.5)。
回答by Christian Ott
Is this a clean & fresh new venv? If not, one thing to try is making a new venv, then first installing numpy and after that pandas.
这是一个干净和新鲜的新 venv 吗?如果没有,可以尝试创建一个新的 venv,然后首先安装 numpy,然后安装 Pandas。
BTW: I'd suggest switching to Python 3.
顺便说一句:我建议切换到 Python 3。
回答by S.Bao
the latest version of pandas have some issue with python3.4, if you have python3.4 you can install 0.20.3 version of pandas pip3 install pandas==0.20.3
最新版本的pandas在python3.4上有一些问题,如果你有python3.4,你可以安装0.20.3版本的pandas pip3 install pandas==0.20.3