python 3.x

"Cannot compile 'Python.h'. Perhaps you need to "\

При установке numpy под виртуальным окружением для 3ого питона:

pip3 install numpy

Появлялась следующая ошибка:

File "numpy/core/setup.py", line 289, in check_types
"Cannot compile 'Python.h'. Perhaps you need to "\
SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.

Помогла установка python3.4-dev

apt-get install python3.4-dev