[Numpy-discussion] Should I use pip install numpy in linux?

Matthew Brett matthew.brett at gmail.com
Fri Jan 8 12:12:19 EST 2016


Hi,

On Fri, Jan 8, 2016 at 4:28 PM, Yuxiang Wang <yw5aj at virginia.edu> wrote:
> Dear Nathaniel,
>
> Gotcha. That's very helpful. Thank you so much!
>
> Shawn
>
> On Thu, Jan 7, 2016 at 10:01 PM, Nathaniel Smith <njs at pobox.com> wrote:
>> On Thu, Jan 7, 2016 at 6:18 PM, Yuxiang Wang <yw5aj at virginia.edu> wrote:
>>> Dear all,
>>>
>>> I know that in Windows, we should use either Christoph's package or
>>> Anaconda for MKL-optimized numpy. In Linux, the fortran compiler issue
>>> is solved, so should I directly used pip install numpy to get numpy
>>> with a reasonable BLAS library?
>>
>> pip install numpy should work fine; whether it gives you a reasonable
>> BLAS library will depend on whether you have the development files for
>> a reasonable BLAS library installed, and whether numpy's build system
>> is able to automatically locate them. Generally this means that if
>> you're on a regular distribution and remember to install a decent BLAS
>> -dev or -devel package, then you'll be fine.
>>
>> On Debian/Ubuntu, 'apt install libopenblas-dev' is probably enough to
>> ensure something reasonable happens.
>>
>> Anaconda is also an option on linux if you want MKL (or openblas).

I wrote a page on using pip with Debian / Ubuntu here :
https://matthew-brett.github.io/pydagogue/installing_on_debian.html

Cheers,

Matthew



More information about the NumPy-Discussion mailing list