I am connected to a machine running Windows 8 from my linux machine using OpenSSH. I need to download python3 on the Windows machine but I only have access to the command prompt, not PowerShell. I also have sftp set up, but all the python downloads are installers which don't work through the command prompt. Does anybody know what I can do?
1 Answer
You can download using the curl program, if it's installed on your windows machine. Something like:
curl https://www.python.org/ftp/python/3.8.3/python-3.8.3-amd64.exe -o python_install.exe
(or look for the Python version you want at https://www.python.org/downloads/windows/)
Then, you can run:
python_install.exe /quiet
There are also zip file packages you can download from the URL above.
Note that a quiet install may not change your system's PATH, so you may need to locate the directory in which Python was installed, and call the program from there.
2 Comments
Deejpake
I tried that but there was no output and typing
python into the command prompt still resulted in it not being recognizedAmitai Irron
This is probably because the
PATH environment variable was not updated, and you need to find where Python was installed. I would guess "c:\Program Files\Python38\python.exe".
python-3.8.3-amd64.e xe /passive InstallAllUsers=0 PrependPath=1 Include_test=0and there was no output and python was still not a recognized command