I am trying to install magento2 via composer using following command. My System specification is PHP Version 7.0.20-1~ubuntu16.04.1
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition
I got the following error
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for magento/product-community-edition 2.1.7 -> satisfiable by magento/product-community-edition[2.1.7].
- magento/product-community-edition 2.1.7 requires php ~5.6.5|7.0.2|7.0.4|~7.0.6 -> your PHP version (7.1.6) does not satisfy that requirement.