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