Installing NumPy with pip fails on Ubuntu

前端 未结 5 728
星月不相逢
星月不相逢 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:27

    pip won't install the necessary compilers for you.

    If you simply want numpy, and don't need to go through pip, use

    sudo apt-get install python-numpy
    

    and you'll get all the requisites as well (such as python-dev).

提交回复
热议问题