Este conteúdo foi traduzido por máquina para sua conveniência e a Huawei Cloud não pode garantir que o conteúdo foi traduzido com precisão. Para exibir o conteúdo original, use o link no canto superior direito para mudar para a página em inglês.
Central de ajuda/ Elastic Cloud Server/ Perguntas frequentes/ Image Source Management/ How Can I Use a Pypi Image Source (x86_64 or Arm) Provided by HUAWEI CLOUD?
Atualizado em 2025-01-23 GMT+08:00

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

  • Esta seção aplica-se apenas às seguintes regiões: CN North-Beijing1, CN North-Beijing4, CN East-Shanghai1, CN East-Shanghai2, CN South-Guangzhou e CN-Hong Kong.
  • Você configurou o servidor DNS da intranet fornecido pela HUAWEI CLOUD.

    Para obter o endereço do servidor DNS da intranet, consulte Quais são os endereços de servidor DNS privados fornecidos pela Huawei Cloud?

    Para obter instruções sobre como configurar um servidor DNS, consulte Configuração do DNS.

  • The operations described in this section apply to both x86_64 and Arm (Kunpeng) ECSs.

Procedure

  1. Log in to the ECS as user root or Administrator.
  2. Run the following commands to create the pip.conf configuration file:

    mkdir ~/.pip

    touch ~/.pip/pip.conf

  3. 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.