Error in Raspberry Pi Install Guide -- please include py-dev

Following this guide:

dev.ardupilot.com/wiki/companion … a-mavlink/

during the install phase, under “Install required packages on the Raspberry Pi”, you need to include

sudo apt-get install python-dev

I just went through this install and eventually got it working, but a new RPi does not come with python dev, and the pymavlink and mavproxy installation will fail if you do not include this package.

I thought I had fixed this. Now updated on wiki and will be updated on the official DK docs when this goes in github.com/diydrones/dronekit-python/pull/216

Note, the official docs are more likely to be up to date.

Thanks very much for posting this.

I have installed
sudo apt-get install python-dev

But when i try installing pymavlink and mavproxy. I get following on the console:

Building dependency tree
Reading state information… Done
python-dev is already the newest version (2.7.13-2).
0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
pi@raspberrypi:~ $ sudo pip install pymavlink
Collecting pymavlink
Requirement already satisfied: future in /usr/local/lib/python2.7/dist-packages (from pymavlink)
Collecting lxml (from pymavlink)
Using cached https://files.pythonhosted.org/packages/e8/5d/98f56e274bdf17f2e0d9016d1788ca80d26d8987dcd5e1d9416d86ee0625/lxml-4.2.1.tar.gz
Building wheels for collected packages: lxml

And then console freezes.
Any suggestions? Thanks