2

I do have numpy as I get no error for

import numpy

But I want to install Caffe and to decide if I should use Atlas or OpenBLAS I need to know what my numpy is using. I did tried this to know how many numpy I have (I have python 2.7.11 and 2.7.12 for anaconda and python 2.7, 3.5, 3.5m in normal dir)

apt-cache policy numpy

But it does not show anything. Moreover, I would like to know whether my numpy is intalled with simple pip or optimized with some BLAS.

Seanny123
  • 8,776
  • 13
  • 68
  • 124
abdul qayyum
  • 535
  • 1
  • 17
  • 39
  • 1
    http://stackoverflow.com/questions/37184618/find-out-if-which-blas-library-is-used-by-numpy? – DavidW Oct 20 '16 at 11:32
  • thank you it does solved 2 of my problems. – abdul qayyum Oct 20 '16 at 11:43
  • More than the above you can also use `/path/to/pip show numpy` for each of your installations to check which versions you have. – wrwrwr Oct 20 '16 at 11:46
  • @DavidW But can you explain why 'apt_cache policy libname' is not working? – abdul qayyum Oct 20 '16 at 11:51
  • @wrwrwr Are you sure it will work even if I did not installed numpy by pip? – abdul qayyum Oct 20 '16 at 11:51
  • That's only for the pip installed packages. However, together with `apt-cache` and `conda list numpy` you should be able to find all versions except for those installed manually using `setup.py`. (`apt-cache` will only list distribution packages installed through `apt`, like [`python-numpy`](http://packages.ubuntu.com/search?keywords=python-numpy)). – wrwrwr Oct 20 '16 at 12:27
  • Maybe it would be easier to just pick one Python version, say the default under `python`, and install `numpy` for it (say using `python -m pip install numpy --upgrade`). Otherwise you'll have to find a way to tell Caffe which of your Pythons to use. – wrwrwr Oct 20 '16 at 12:33

0 Answers0