如何从命令行下载python? [英] How to download python from command-line?
问题描述
我在windows上,但我使用putty shell连接到linux机器,并想要安装python 2.7。不能弄清楚如何做到。如何从命令行下载python?
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?
推荐答案
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
现在阅读 README
文件如何安装或执行以下操作,但我无法保证这将是您所需要的。
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
对于Python 3.5,使用以下下载地址:< br>
http://www.python.org/ftp/ python / 3.5.1 / Python-3.5.1.tgz
For Python 3.5 use the following download address:
http://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz
对于其他版本和最新的下载链接:
http://www.python.org/getit/
For other versions and the most up to date download links:
http://www.python.org/getit/
这篇关于如何从命令行下载python?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!