2
respostas

Erro de instalação

Na hora de instalar o python aparece o seguinte erro:

python2 By installing you accept licenses for the packages. Progress: Downloading python2 2.7.13... 100%

python2 v2.7.13 [Approved] python2 package files install completed. Performing other installation steps. The package python2 wants to run 'chocolateyInstall.ps1'. Note: If you don't run this script, the installation will fail. Note: To confirm automatically next time, use '-y' or consider: choco feature enable -n allowGlobalConfirmation Do you want to run the script?([Y]es/[N]o/[P]rint): y

Attempt to get headers for https://www.python.org/ftp/python/2.7.13/python-2.7.13.msi failed. The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://www.python.org/ftp/python/2.7.13/python-2.7.13.msi'. Exception calling "GetResponse" with "0" argument(s): "O tempo limite da operação foi atingido" Downloading python2 32 bit from 'https://www.python.org/ftp/python/2.7.13/python-2.7.13.msi' ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://www.python.org/ftp/python/2.7.13/python-2.7.13.msi'. Exception calling "GetResponse" with "0" argument(s): "O tempo limite da operação foi atingido" This package is likely not broken for licensed users - see https://chocolatey.org/docs/features-private-cdn. The install of python2 was NOT successful. Error while running 'C:\ProgramData\chocolatey\lib\python2\tools\chocolateyInstall.ps1'. See log for details.

Chocolatey installed 0/1 packages. 1 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures - python2 (exited 404) - Error while running 'C:\ProgramData\chocolatey\lib\python2\tools\chocolateyInstall.ps1'. See log for details.

2 respostas

Olá Ricardo, tudo bem?

Fiz um teste por aqui com o Windows 10 e consegui instalar o chocolatey, como sugestão, tente executar os seguintes passos:

1-) Rode o cmd no modo administrador, para isso clique como o botão direito do mouse e escolha a opção Executar como administrador

2-) Na sequência, tente colocar esse código para instalação do chocolatey:

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

Abs

Meu chocolatey já esta instalado corretamente Consegui instalar o php por exemplo, ate msm o MySQL Porem, nenhum Python consigo. Talvez o problema esteja na fonte de onde a linguagem é baixada. Obrigado