How Can I Use a Pypi Image Source (x86_64 or Arm) Provided by HUAWEI CLOUD?
Scenarios
When updating the OS or software of an ECS, you can access the Internet through the ECS and use an external Pypi image source. However, if your ECS cannot access the Internet, or the external Pypi image source cannot provide services stably, you can use the Pypi image source provided by HUAWEI CLOUD.
Restrictions and Limitations
- This section applies only to the following regions: CN North-Beijing1, CN North-Beijing4, CN East-Shanghai1, CN East-Shanghai2, CN South-Guangzhou, and CN-Hong Kong.
- You have configured the intranet DNS server provided by HUAWEI CLOUD.
To obtain the intranet DNS server address, see What Are the Private DNS Server Addresses Provided by Huawei Cloud?
For instructions about how to configure a DNS server, see Configuring DNS.
- The operations described in this section apply to both x86_64 and Arm (Kunpeng) ECSs.
Procedure
- Log in to the ECS as user root or Administrator.
- Run the following commands to create the pip.conf configuration file:
mkdir ~/.pip
touch ~/.pip/pip.conf
- Modify the pip.conf configuration file as follows:
[global] index-url = http://mirrors.myhuaweicloud.com/pypi/web/simple format = columns [install] trusted-host=mirrors.myhuaweicloud.com
If certain packages are unavailable, this issue may be caused by in-progress data synchronization. In such a case, try again several hours later.
Image Source Management FAQs
- How Can I Use an Automated Tool to Configure a HUAWEI CLOUD Image Source (x86_64 and Arm)?
- How Can I Use an EPEL Image Source (x86_64 or Arm) Provided by HUAWEI CLOUD?
- How Can I Use a Pypi Image Source (x86_64 or Arm) Provided by HUAWEI CLOUD?
- What Can I Do If the Download Speed Is Slow After the yum makecache Command Is Executed?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore