1
resposta

Instalação Python2

Apareceram as seguintes mensagens em amarelo quando instalei o choco no cmd (administrador):

"Warning: Installation folder is not the default. Not changing permissions. Please ensure your installation is secure."

"WARNING: You can safely ignore errors related to missing log files when upgrading from a version of Chocolatey less than 0.9.9. ' Batch file could not be found' is also safe to ignore. ' The system cannot find the file specified' - also safe."

"AVISO: Not setting tab completion: Profile file does not exist at 'C:\Users\leonardo\Document\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'."

Ainda assim, consigo verificar a versão do Chocolatey pelo cmder.

Porém, quando vou instalar o python2, aparecem os seguintes erros:

"ERROR: Running ["C:\Windows\System32\msiexec.exe" /i "C:\Users\leonardo\AppData\Local\Temp\chocolatey\python2\2.7.14\python-2.7.14.amd64.msi" /qn /norestart ALLUSERS=1 ADDLOCAL=ALL TargetDir="C:\Python27" ] was not successful. Exit code was '1603'. See log for possible error messages. at System.Management.Automation.FlowControlNode.Execute(Array input, Pipe outputPipe, ExecutionContext context) at System.Management.Automation.ParseTreeNode.Execute(Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context) at System.Management.Automation.StatementListNode.ExecuteStatement(ParseTreeNode statement, Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context)"

"The install of python2 was NOT successful. Error while running 'C:\ProgramData\chocolatey\bin\lib\python2\tools\chocolateyInstall.ps1'. See log for details."

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

Como proceder? Obrigado desde já.

1 resposta

Olá Leonardo,

Ao instalar o chocolatey, você estava com o cmd em modo administrador? Fiz o teste com o seguinte comando ao abrir o cmd em modo Administrador:

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

Ao colocar esse comando consegui fazer a instalação do chocolatey e depois ao colocar choco install python2 a instalação foi realizada, poderia por favor verificar essa etapa?

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software