install python

[[email protected] bin]# yum install readline readline-devel ncurses ncurses-devel -y

[[email protected] bin]# wget --no-check-certificate  https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz

[[email protected] bin]# wget --no-check-certificate  https://github.com/ipython/ipython/releases/download/rel-2.1.0/ipython-2.1.0.tar.gz

[[email protected] bin]# tar fvxz Python-2.7.8.tgz

[[email protected] bin]# cd Python-2.7.8

[[email protected] bin]# ./configure --prefix=/usr/local/python27 && make && make install

[[email protected] bin]# tar fvxz ipython.tar.gz

[[email protected] bin]# cd ipython-2.1.0/

[[email protected] bin]# /usr/local/python27/bin/python2.7 setup.py build

[[email protected] bin]# /usr/local/python27/bin/python2.7 setup.py install
[[email protected] bin]# cd /usr/bin
[[email protected] bin]# ln -sv /usr/local/python27/bin/ipython . 
[[email protected] bin]# ipython
WARNING: IPython History requires SQLite, your history will not be saved
Python 2.7.9 (default, Jan 30 2015, 00:13:35)
Type "copyright", "credits" or "license" for more information.

IPython 3.1.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython‘s features.
%quickref -> Quick reference.
help      -> Python‘s own help system.
object?   -> Details about ‘object‘, use ‘object??‘ for extra details.

In [1]:

时间: 2024-11-10 13:34:10

install python的相关文章

install python+twisted+mysqldb+nginx+uwsgi on mac

一. install python 1) check install or not 在mac终端输入命令:which python 即可查看python的路径 2)未安装时,手动下载安装包 地址:https://www.python.org/downloads/ 选择下载   Mac OS X 64-bit/32-bit installer 安装 二. install twisted 1) check install or not 在mac终端输入命令:$ python Python 2.7.1

AIX 7.1 install python

环境AIX7.1   安装python-2.6.2  因为网上很多安装文档,所以并没有细挑版本,因为我觉得python2.6 可能相对保守一些,至少之前用到的版本是这个,所以此处依然选择熟悉的版本. 废话不多说,直接下载这3个安装包. http://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/python/python-2.6.2-2.aix6.1.ppc.rpm ftp://ftp.software.ibm.com/aix

How to install Python 2.7 and Python 3.3 on CentOS

In this guide I will show you how to install Python 2.7 and 3.3 on CentOS 6. The examples below are for Python 2.7.6 and Python 3.3.5, but the procedure is the same for any modern version of Python including the upcoming Python 3.4.0. I make regular

install Python 2.7 and Python 3.3 on CentOS 6

来自:http://toomuchdata.com/2014/02/16/how-to-install-python-on-centos/ In this guide I will show you how to install Python 2.7 and 3.3 on CentOS 6. The examples below are for Python 2.7.6 and Python 3.3.5, but the procedure is the same for any modern

Install Python on Mac

1. 从官网下载最新版Python 3.X 后安装:由于Mac OS X EI Capitan中默认已经集成了 Python 2.7,因此需要在Terminal中输入 Python3 来检测是否安装成功,使用Python命令默认调用的是Python 2.7. 2. 安装pip:从官网页面下载get-pip.py文件(不要在意该网页中依据python版本判断你是否已经安装,直接在Terminal中输入命令pip,如果无效,则证明没有安装),然后输入进入到get-pip.py所在目录,使用pytho

【python】install python 2.7.9

CentOS 7.1  自带 python 2.7.5, 存在sslv3验证的问题,需要通过升级来解决 /// /// 新系统自带的 Python /// [[email protected] tools]# python -V Python 2.7.5 [[email protected] tools]# which python /usr/bin/python [[email protected] tools]# /// /// 利用 yum 升级 python /// [[email pr

Install Python and It’s Plugins With NO Privileges

http://lujialong.com/?p=150 在没有root权限的情况下,需要安装python的插件,或者升级python. 做法就是废弃系统中默认装好的Python,为自己这个普通用户编译一个新的python,然后再为这个新的python装模块. 以为python在安装模块时,会根据python对应的路径去找对应的site-packages,将第三方模块安装到这个目录下. 具体python对应的site-packages在那里,可以调用: 对应的python -c “from dis

Install Python Modules

1. using pip (for ubuntu: using "sudo apt-get install python3-pip" to install pip for python3): pip install mudulename 2. using sudo command in Linux in condition that pip doesn't work, for example the Tkinter module: sudo apt-get install python

widows 10 下解决在npm install python 环境报错的问题

1.使用管理员打开cmd 2.安装 node-gyp; gyp是一种根据c++源代码编译的工具,node-gyp就是为node编译c++扩展的时候使用的编译工具. npm install -g node-gyp 3.python2.7 因为node-gyp需要依赖python2.7和微软的vc++构建工具来进行编译但是windows操作系统在默认情况下不会安装python2.7和vc++构建工具. 为node-gyp配置安装python2.7以及VC++ build Tools依赖 npm in