The AMP module requires the PHP AMP library I installed Drupal 8 and amptheme. I downloaded the AMP module and the library files. When I tried to install the module, I got the following message:


  The AMP module requires the PHP AMP library.


The library files are in libraries/amp-library. I think the library location is incorrect.

How do I fix the error?
This module requires the use of Composer to install its libraries. You can learn more about Drupal and Composer on drupal.org's documentation hand book Installing modules' Composer dependencies in Drupal 8. The AMP module project page also has a brief description of how to install on Drupal 8.0.5.