32

I try to install pandas for Python 3 by executing the following command:

sudo pip3 install pandas

As a result I get this:

Downloading/unpacking pandas
 Cannot fetch index base URL https://pypi.python.org/simple/
 Could not find any downloads that satisfy the requirement pandas
Cleaning up...
No distributions at all found for pandas

Maybe it is interesting to note that installation for Python 2 works fine.

sudo pip install pandas

Returns the following:

Requirement already satisfied (use --upgrade to upgrade): pandas in /usr/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /usr/lib/python2.7/dist-packages (from pandas)
Requirement already satisfied (use --upgrade to upgrade): pytz>=2011k in /usr/lib/python2.7/dist-packages (from pandas)
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.6.1 in /usr/lib/python2.7/dist-packages (from pandas)
Cleaning up...

ADDED

I have just installed pandas in the following way:

sudo apt-get install python3-pandas
asked Aug 4, 2016 at 13:39
2
  • 2
    What happens if you try sudo python3 -m pip install pandas ? I find pip3 to behave funny sometimes. Commented Aug 4, 2016 at 13:40
  • I've installed pip3 via brew and pip3 install pandas works like a charm. You problem is probably distribution dependent which one are you using? Commented Mar 3, 2017 at 20:32

4 Answers 4

17

Try this:

sudo apt-get install python3-pip
sudo -H pip3 install pandas
MarredCheese
21.3k12 gold badges109 silver badges105 bronze badges
answered Apr 24, 2017 at 12:49
Sign up to request clarification or add additional context in comments.

Comments

6

This worked for me, finally:

pip3 install pandas --no-build-isolation
MarredCheese
21.3k12 gold badges109 silver badges105 bronze badges
answered Apr 26, 2018 at 14:47

Comments

4

I believe for Python 3.4 you should use: pip3 install 'pandas<0.21'. Don't forget, if your machine requires a proxy, add this bit after install: --proxy=http://sub_domain_proxy.sub_domain.domain:port

answered May 29, 2018 at 9:55

Comments

3

Most of the time, pip gives me errors (I really don't know why), so I use apt-get instead.

For python3 use:

sudo apt-get install python3-pandas

For python2 use:

sudo apt-get install python-pandas
MarredCheese
21.3k12 gold badges109 silver badges105 bronze badges
answered Apr 17, 2019 at 12:10

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.