Reputation: 456
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?
Upvotes: 0
Views: 8628
Reputation: 2065
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.
Upvotes: 2