"The TARGETDIR variable must be provided when invoking this installer"的解决方案

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/helongqiang/article/details/84945675

一、问题出现

在安装Python客户端的过程中出现这个问题,百度上很少有解决方案,好不容易找到了才解决,所以自己记录下来,以后有人遇到就可以解决了。

二、问题展示

 

日志如下:

[1E298:22034][2018-12-10T20:04:30]i001: Burn v3.10.0.2103, Windows v10.0 (Build 14393: Service Pack 0), path: E:\浏览器下载\安装包\python-3.5.1-amd64.exe
[1E298:22034][2018-12-10T20:04:30]i000: Initializing string variable 'ActionLikeInstalling' to value 'Installing'
[1E298:22034][2018-12-10T20:04:30]i000: Initializing string variable 'ActionLikeInstallation' to value 'Setup'
[1E298:22034][2018-12-10T20:04:30]i000: Initializing string variable 'ShortVersion' to value '3.5'
[1E298:22034][2018-12-10T20:04:30]i000: Initializing numeric variable 'ShortVersionNoDot' to value '35'
[1E298:22034][2018-12-10T20:04:30]i000: Initializing string variable 'WinVer' to value '3.5'
[1E298:22034][2018-12-10T20:04:30]i000: Initializing numeric variable 'WinVerNoDot' to value '35'
[1E298:22034][2018-12-10T20:04:30]i000: Initializing numeric variable 'InstallAllUsers' to value '0'
[1E298:22034][2018-12-10T20:04:30]i000: Initializing numeric variable 'InstallLauncherAllUsers' to value '1'
[1E298:22034][2018-12-10T20:04:30]i000: Initializing string variable 'TargetDir' to value ''
[1E298:22034][2018-12-10T20:04:30]i000: Initializing string variable 'DefaultAllUsersTargetDir' to value '[ProgramFiles64Folder]Python[WinVerNoDot]'
[1E298:22034][2018-12-10T20:04:30]i000: Initializing string variable 'TargetPlatform' to value 'x64'
[1E298:22034][2018-12-10T20:04:30]i000: Initializing string variable 'DefaultJustForMeTargetDir' to value '[LocalAppDataFolder]Programs\Python\Python[WinVerNoDot]'
[1E298:22034][2018-12-10T20:04:30]i000: Initializing string variable 

三、解决方案

单选安装包,右键选择以管理员身份运行,然后就可以安装成功了。

 

备注:https://www.cnblogs.com/suogasus/p/4894172.html这个网址是我找到解决方案的博客,谢谢博主。

博主设置当前文章不允许评论。

没有更多推荐了,返回首页