Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting "targetdir variable must be provided when invoking this installer" message

when i try to install python i'm getting the "targetdir variable must be provided when invoking this installer" whilst attempting to install python 3.5. I have used tried to Run as admin however, I', still getting this error.

like image 710
Krishn Avatar asked Oct 25 '25 14:10

Krishn


1 Answers

I had the same problem today and it did not work even with "run as administrator". To solve the problem, I ran powershell as administrator and executed the following command:

python-3.6.1.exe InstallAllUsers=1 TargetDir="c:\python3.6"
like image 101
Stef1611 Avatar answered Oct 27 '25 03:10

Stef1611