{"id":277,"date":"2024-03-08T21:14:43","date_gmt":"2024-03-09T00:14:43","guid":{"rendered":"https:\/\/difusao.tech\/blog\/?p=277"},"modified":"2024-03-08T21:15:17","modified_gmt":"2024-03-09T00:15:17","slug":"configurando-pip-ini-para-multiplos-host-de-confianca-via-powershell-specifying-multiple-trusted-hosts-in-pip-ini","status":"publish","type":"post","link":"https:\/\/difusao.tech\/blog\/configurando-pip-ini-para-multiplos-host-de-confianca-via-powershell-specifying-multiple-trusted-hosts-in-pip-ini\/","title":{"rendered":"Configurando pip.ini para multiplos host de confian\u00e7a via powershell \/ Specifying multiple trusted hosts in pip.ini"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"772\" height=\"548\" src=\"https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2024\/03\/image.png\" alt=\"\" class=\"wp-image-278\" style=\"width:294px;height:auto\" srcset=\"https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2024\/03\/image.png 772w, https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2024\/03\/image-300x213.png 300w, https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2024\/03\/image-768x545.png 768w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/><\/figure>\n<\/div>\n\n\n<p>As vezes por uma quest\u00e3o de configura\u00e7\u00e3o da infra estrutura local precisamos realizar uma configura\u00e7\u00e3o de confian\u00e7a para alguns host e evitar alguns erros de instala\u00e7\u00e3o.<\/p>\n\n\n\n<p>Tal configra\u00e7\u00e3o pode ser feita no arquivo pip.ini, para facilitar vamos executar a configura\u00e7\u00e3o pelo Poweshell, lembrando que tal configura\u00e7\u00e3o tem que ser feita por perfil de usu\u00e1rio.<\/p>\n\n\n\n<p>Segue abaixo o comando:<\/p>\n\n\n\n<p><mark style=\"background-color:#abb8c3\" class=\"has-inline-color\">pip config set global.&#8211;trusted-host &#8220;pypi.org pypi.python.org files.pythonhosted.org&#8221;<\/mark><\/p>\n\n\n\n<p>Digite o comando para ver se a configura\u00e7\u00e3o foi executada com sucesso: <mark style=\"background-color:#abb8c3\" class=\"has-inline-color\">pip config list<\/mark><\/p>\n\n\n\n<p>obs.: Fique atento que para a configura\u00e7\u00e3o ter efeito n\u00e3o pode esquecer o ponto logo depois do global como mostrado a seguir : <mark style=\"background-color:#abb8c3\" class=\"has-inline-color\">global.&#8211;trusted-host<\/mark><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As vezes por uma quest\u00e3o de configura\u00e7\u00e3o da infra estrutura local precisamos realizar uma configura\u00e7\u00e3o de confian\u00e7a para<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[188,30,157],"tags":[217,218,158],"class_list":["post-277","post","type-post","status-publish","format-standard","hentry","category-powershell","category-programacao-e-desenvolvimento","category-python","tag-pip","tag-pip-config","tag-python"],"_links":{"self":[{"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/posts\/277","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/comments?post=277"}],"version-history":[{"count":1,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/posts\/277\/revisions"}],"predecessor-version":[{"id":279,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/posts\/277\/revisions\/279"}],"wp:attachment":[{"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/media?parent=277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/categories?post=277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/tags?post=277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}