Dee
Dee

Reputation: 411

Pip install pandas: installing dependencies error

I am trying to pip install pandas in a virtual environment but I am having an error I really do not understand.

pandas error

I am guessing it has something to do with the Double requirement given but I really do not know where to go from here.

Upvotes: 9

Views: 23797

Answers (4)

S.Bao
S.Bao

Reputation: 311

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

Upvotes: 2

蔡宗容
蔡宗容

Reputation: 1057

I met the same error on Python3.4.

And the root cause of this error is that

"pandas 0.21-0.22 no longer supports 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.

$ python --version
Python 3.4.3

Solution: Install python 3.5

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).

Upvotes: 4

Christian Ott
Christian Ott

Reputation: 131

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.

BTW: I'd suggest switching to Python 3.

Upvotes: 3

Ethan
Ethan

Reputation: 33

You don't have to install via pip, you can install via your system's repositories see here.

Upvotes: 0

Related Questions