6

Just starting out in python on a pendrive 12.04 Kubuntu environment. I had to install GCC (understand that), but I also had to install python-dev before I could use PIP to install numpy. Why do I need python-dev?

sudo apt-get install gcc
sudo apt-get install pip
cd /usr/lib/python2.7/
sudo apt-get install python-dev
sudo pip install numpy
DecisionNerd
  • 1,252
  • 1
  • 12
  • 19
  • 2
    why does anything matter? As I said I am new to the language and wanted to know so that in the future I understand why I need what. – DecisionNerd Jun 17 '12 at 18:27

1 Answers1

7

When you use pip to install numpy, the packages is compiled from source. The pythonx.x-dev packages contain the necessary header files for linking against python.