Skip to content

Instantly share code, notes, and snippets.

@sangheestyle
Created September 3, 2014 20:16
Show Gist options
  • Save sangheestyle/14c66a9884de8a0eceba to your computer and use it in GitHub Desktop.
Save sangheestyle/14c66a9884de8a0eceba to your computer and use it in GitHub Desktop.
Install Pandas on Debian from the scratch

Install Pandas on Debian from the scratch

a. install requirements

$ sudo apt-get install python-numpy python-scipy
$ sudo apt-get install libopenblas-base libatlas3-base

b. set symbolic link of libblas.so.3 and liblapack.so.3. This step affects performance of Numpy, Scipy, and Pandas. Check which implementation is better. Of course, it can spoil installing pandas with pip.

$ sudo update-alternatives --config libblas.so.3
There are 3 choices for the alternative libblas.so.3 (providing /usr/lib/libblas.so.3).

  Selection    Path                                     Priority   Status
------------------------------------------------------------
  0            /usr/lib/openblas-base/libopenblas.so.0   40        auto mode
  1            /usr/lib/atlas-base/atlas/libblas.so.3    35        manual mode
  2            /usr/lib/libblas/libblas.so.3             10        manual mode
* 3            /usr/lib/openblas-base/libopenblas.so.0   40        manual mode

Press enter to keep the current choice[*], or type selection number: 1
update-alternatives: using /usr/lib/atlas-base/atlas/libblas.so.3 to provide /usr/lib/libblas.so.3 (libblas.so.3) in manual mode
$ sudo update-alternatives --config liblapack.so.3
There are 2 choices for the alternative liblapack.so.3 (providing /usr/lib/liblapack.so.3).

  Selection    Path                                      Priority   Status
------------------------------------------------------------
* 0            /usr/lib/lapack/liblapack.so.3             10        auto mode
  1            /usr/lib/atlas-base/atlas/liblapack.so.3   5         manual mode
  2            /usr/lib/lapack/liblapack.so.3             10        manual mode

Press enter to keep the current choice[*], or type selection number: 1
update-alternatives: using /usr/lib/atlas-base/atlas/liblapack.so.3 to provide /usr/lib/liblapack.so.3 (liblapack.so.3) in manual mode

c. install pandas

$ pip install pandas
@abdallah303
Copy link

pip install pandas it didn't work for me.

pip3 install pandas worked. Thank you.

@abdelilah-design
Copy link

pipx install pandas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment