大网数据广告活动
Web服务器与PHP

Python Development Workload Fails to Install in Visual Studio

· 52CE 我爱测

Helps resolve an issue where the Python development workload fails to install in Visual Studio.

Applies to:  Visual Studio 2022

Symptoms

The Python development workload fails to install in Visual Studio. In addition, you see the following error message:

Package 'CPython39.Exe.x64,version=3.9.13, chip=x64' failed to download from 'https://go.microsoft.com/fwlink/?linkid=2222466'.
Search URL
https://aka.ms/VSSetupErrorReports?q=PackageId=CPython39.Exe.x64; PackageAction=DownloadPackage; ReturnCode=0x80096004
Details
WebClient download failed: Authenticode verification returned 0x800b0003 for path: python-3.9.13-amd64.exe.
Bits download failed: Timeout reached for job VsBitsDownloadJob - -2114796084 whilst in state BG_JOB_STATE_CONNECTING WinInet download failed: Authenticode verification returned 0x800b0003 for path: python-3.9.13-amd64.exe.
Impacted workloads
Python development (Microsoft.VisualStudio.Workload.Python,version=17.5.33306.270)
Impacted components
Python 3 64-bit (3.9.13) (Component.CPython39.x64,version=3.9.13)

Cause

The Visual Studio Installer can't download the python-3.9.13-amd64.exe file from the URL https://go.microsoft.com/fwlink/?linkid=2222466.

Resolution

To resolve the issue, ensure that the necessary domains and servers from which files are downloaded are added to the allowlist.

By adding the necessary domain URLs to the allowlist, you enable the Visual Studio Installer to download the required files and successfully install the Python development workload. For more information on the URLs to add to the allowlist and guidance on installing Visual Studio behind a firewall or proxy server, see Install and use Visual Studio and Azure Services behind a firewall or proxy server.

Once you complete the allowlisting process, you can install the Python development workload in Visual Studio without encountering any download failures.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 12/27/2024
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。