Linux set pip image pip Warning:–trusted-host problem solution

Source: Internet
Author: User
Tags aliyun

After the PIP upgrade to 7.0, when using the HTTP image for package installation and upgrade, there are often the following tips:

Collecting BEAUTIFULSOUP4
The repository located at Mirrors.aliyun.com are not a trusted or secure host and is being ignored. If This repository is available via HTTPS it's recommended to use HTTPS instead, otherwise your may silence this warning a nd allow it anyways with ' –trusted-host mirrors.aliyun.com '.
Could not find a version this satisfies the requirement beautifulsoup4 (from versions:)
No matching distribution found for BEAUTIFULSOUP4

The solution is as follows:

1. Add –trusted-host mirrors.aliyun.com parameters when installing:

1 Pip Install beautifulsoup4- -Trusted-host mirrors. Aliyun. com

2. Add the Trusted-host option to pip.conf, the method is once and for all

1234 [Global] index-URL = http://mirrors. Aliyun. COM/pypi/simple/ [install] Trusted-host=mirrors. Aliyun. COM

Linux set pip image pip Warning:–trusted-host problem solution

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.