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?
我在Windows上,但我使用putty shell连接到linux机器,并且想要安装python 2.7。无法弄清楚该怎么做。如何从命令行下载python?
3 个解决方案
#1
80
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.
现在阅读README文件以了解如何安装或执行以下操作,但不保证我将完全满足您的需求。
./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
对于Python 3.5,请使用以下下载地址: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/
对于其他版本和最新的下载链接:http://www.python.org/getit/
#2
4
apt-get install python2.7
will work on debian-like linuxes. The python website describes a whole bunch of other ways to get Python.
apt-get install python2.7适用于类似debian的linuxes。 python网站描述了一大堆获取Python的其他方法。
#3
0
Well if you are getting into a linux machine you can use the package manager of that linux distro.
好吧,如果你进入Linux机器,你可以使用该Linux发行版的包管理器。
If you are using Ubuntu just use apt-get search python, check the list and do apt-get install python2.7 (not sure if python2.7 or python-2.7, check the list)
如果您使用的是Ubuntu,只需使用apt-get search python,检查列表并执行apt-get install python2.7(不确定是否python2.7或python-2.7,查看列表)
You could use yum in fedora and do the same.
你可以在fedora中使用yum并做同样的事情。
if you want to install it on your windows machine i dont know any package manager, i would download the wget for windows, donwload the package from python.org and install it
如果你想在你的Windows机器上安装它我不知道任何包管理器,我会下载wget for windows,从python.org下载包并安装它
#1
80
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.
现在阅读README文件以了解如何安装或执行以下操作,但不保证我将完全满足您的需求。
./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
对于Python 3.5,请使用以下下载地址: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/
对于其他版本和最新的下载链接:http://www.python.org/getit/
#2
4
apt-get install python2.7
will work on debian-like linuxes. The python website describes a whole bunch of other ways to get Python.
apt-get install python2.7适用于类似debian的linuxes。 python网站描述了一大堆获取Python的其他方法。
#3
0
Well if you are getting into a linux machine you can use the package manager of that linux distro.
好吧,如果你进入Linux机器,你可以使用该Linux发行版的包管理器。
If you are using Ubuntu just use apt-get search python, check the list and do apt-get install python2.7 (not sure if python2.7 or python-2.7, check the list)
如果您使用的是Ubuntu,只需使用apt-get search python,检查列表并执行apt-get install python2.7(不确定是否python2.7或python-2.7,查看列表)
You could use yum in fedora and do the same.
你可以在fedora中使用yum并做同样的事情。
if you want to install it on your windows machine i dont know any package manager, i would download the wget for windows, donwload the package from python.org and install it
如果你想在你的Windows机器上安装它我不知道任何包管理器,我会下载wget for windows,从python.org下载包并安装它