Installing NumPy with pip fails on Ubuntu

前端 未结 5 726
星月不相逢
星月不相逢 2020-12-30 10:50

When I try:

$ sudo pip install numpy

on my Ubuntu 12.04 server, I get:

----------------------------------------------------         


        
5条回答
  •  隐瞒了意图╮
    2020-12-30 11:39

    Some of these packages may not be required (don't have time to check in detail) but in a setup script of mine to install the NumPy stack I install the following Ubuntu packages first:

    - build-essential
    - gfortran
    - libatlas-base-dev
    - libatlas3gf-base
    - python-dev
    - libjpeg-dev
    - libxml2-dev
    - libfreetype6-dev
    - libpng-dev
    

    Otherwise you could simply use the Anaconda Python distribution, which works great.

提交回复
热议问题