Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to download python from command-line? [closed]

I'm on windows, but I'm using a putty shell to connect to a linux machine, and want to install python 2.7. Can't figure out how to do it. How can I download python from command line?

like image 695
Python Avatar asked Jul 08 '11 21:07

Python


People also ask

How do I download a full version of Python?

Step 2 − Download Python Executable InstallerOn the web browser, in the official site of python (www.python.org), move to the Download for Windows section. All the available versions of Python will be listed. Select the version required by you and click on Download.


2 Answers

wget --no-check-certificate https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz
tar -xzf Python-2.7.11.tgz  
cd Python-2.7.11

Now read the README file to figure out how to install, or do the following with no guarantees from me that it will be exactly what you need.

./configure  
make  
sudo make install  

For Python 3.5 use the following download address:
http://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz

For other versions and the most up to date download links:
http://www.python.org/getit/

like image 57
Andrew Clark Avatar answered Oct 26 '22 21:10

Andrew Clark


apt-get install python2.7 will work on debian-like linuxes. The python website describes a whole bunch of other ways to get Python.

like image 29
odrm Avatar answered Oct 26 '22 22:10

odrm