Composer (composer) installation php-ml

Source: Internet
Author: User
Tags install php composer install

At first I was using the up5.6 version of the PHP command installation composer

Later when using composer, the command line was found to prompt PHP version too low

So I downloaded the wamp and reinstalled the composer with version 7.1 PHP because the PHP-ML requirement must be version 7.1

There are some problems with the installation, that is, the installation is unsuccessful, and there is no folder that appears

When installing with composer, use the path where the Composer.json is located

Usecomposer require php-ai/php-ml

Installation of PHP-ML, but no success, prompt for errors

This is because version matching is not ignored

First set composer to domestic mirror

Composer Config-g Repo.packagist composer https://packagist.phpcomposer.com

Then use the Ignore version matching command

Composer Install--ignore-platform-reqs

You can find the Vendor folder at the Php-ml directory, which is all the library files

At this point, complete the composer install PHP package process

Add: Actually this is not used when I install PHP-ML

About the update command

Composer Update--ignore-platform-reqs

If prompted for warning:

is isn't writable.  Proceeding without cache

This is the execution of composer in the virtual machine, that the directory does not have writable permissions, composer cannot cache the downloaded package, so that each time you have to re-download, the directory is changed to writable readable.

777 /home/vagrant/.composer/cache/files/



Composer (composer) installation php-ml

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.