Python installation

 

PIP:
Python & OS Support

pip works with CPython versions 2.6, 2.7, 3.2, 3.3, 3.4 and also pypy.

pip works on Unix/Linux, OS X, and Windows.

pip included with Python

Python 2.7.9 and later (on the python2 series), and Python 3.4 and later include pip by default [1], so you may have pip already.

Install pip

To install pip, securely download get-pip.py[2]

Then run the following (which may require administrator access):

python get-pip.py

If setuptools is not already installed, get-pip.py will install setuptools for you. [3]

To upgrade an existing setuptools, run pip install -U setuptools.

Additionally, get-pip.py supports using the pip install options and the general options. Below are some examples:

Install from local copies of pip and setuptools:

python get-pip.py --no-index --find-links=/local/copies

Install to the user site [4]:

python get-pip.py --user

Install behind a proxy:

python get-pip.py --proxy="[user:passwd@]proxy.server:port"

setuptools安装好后,
(1)cd /d E:\pip-7.1.2
(2)python setup.py install
https://pypi.python.org/pypi/pip

xlrd

xlrd 0.9.4

Download
xlrd-0.9.4.tar.gz

Library for developers to extract data from Microsoft Excel (tm) spreadsheet files

Extract data from Excel spreadsheets (.xls and .xlsx, versions 2.0 onwards) on any platform. Pure Python (2.6, 2.7, 3.2+). Strong support for Excel dates. Unicode-aware.

(1)cd /d E:\xlrd-0.9.4
(2)python setup.py install

E:\xlrd-0.9.4>python setup.py install
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\xlrd
copying xlrd\biffh.py -> build\lib\xlrd
copying xlrd\book.py -> build\lib\xlrd
copying xlrd\compdoc.py -> build\lib\xlrd
copying xlrd\formatting.py -> build\lib\xlrd
copying xlrd\formula.py -> build\lib\xlrd
copying xlrd\info.py -> build\lib\xlrd
copying xlrd\licences.py -> build\lib\xlrd
copying xlrd\sheet.py -> build\lib\xlrd
copying xlrd\timemachine.py -> build\lib\xlrd
copying xlrd\xldate.py -> build\lib\xlrd
copying xlrd\xlsx.py -> build\lib\xlrd
copying xlrd\__init__.py -> build\lib\xlrd

https://pypi.python.org/pypi/xlrd

 

 

 

时间: 2024-10-27 23:38:12

Python installation的相关文章

搭建eclipse+python+selenium测试环境

经过几天的纠结之后,终于在今天把该环境搭建起来了,在这里要特别感谢深圳-乙醇老师的帮助 搭建环境: 系统环境:Win7 64位; JDK版本:java version "1.6.0_45″ eclipse版本:4.2.0 下面就给大家介绍一下详细的步骤: (1) 下载一个active-python安装软件(该软件已经包含了python2.7和setuptools),默认安装好之后,对应的python目录里面就已经存在Scripts文件夹了,十分方便 (2) 添加Path,比如:C:\Python

Python version 2.7 required, which was not found in the registry_python

安装PIL库的时候,直接提示:Python version 2.7 required, which was not found in the registry. 如图: 大意是说找不到注册表,网上搜索解决方案. 新建一个register.py文件写入代码: 复制代码 代码如下: import sys    from _winreg import *    # tweak as necessary version = sys.version[:3] installpath = sys.prefix

linux中安装第三方库出现 Python version 2.7 required...

#建立一个文件 register.py 内容如下. 然后执行该脚本  代码如下 复制代码 import sys from _winreg import * # tweak as necessary version = sys.version[:3] installpath = sys.prefix regpath = "SOFTWARE\Python\Pythoncore\%s\" % (version) installkey = "InstallPath" pyt

Windows下python的配置

Windows下python的配置 希望这是最后一次写关于python的配置博客了,已经被python的安装烦的不行了.一开始我希望安装python.手动配置pip并使用pip安装numpy,然而发现实在麻烦:最终我转向了anaconda阵营. 版本选择 主版本 python27 or python33? or python34, python35? Python版本这么多,搞得各种不统一,真是自己作死. 果断使用Python2.7,python3各种都还不稳定 小版本 python27下有很多

Clang AST parsing for automated code generation

原文地址:http://www.seethroughskin.com/blog/?p=2172 Syntax traversal is a powerful tool. With it you can automate repetitive tasks, search for semantic errors, generate wrappers, and so much more.  A few months ago I hit a hump (read: a f***ing mountain)

NNabla:索尼开源的一款神经网络框架

NNabla是一款用于研究.开发和生产的深度学习框架.NNabla的目标是要能在台式电脑.HPC集群.嵌入式设备和生产服务器上都能运行. 安装 安装NNabla很简单: 这条命令将安装NNabla的CPU版本.你还可以通过执行pip install nnabla-ext-cuda来安装CUDA扩展以添加GPU加速. 特点 容易.灵活和富有表现力 基于NNabla C++ 11内核的Python API为你提供了强大的灵活性和高效的生产力.例如,下面的5行代码定义了一个具有分类损失的双层神经网络(

How to install Django¶

This document will get you up and running with Django. Install Python Being a Python Web framework, Django requires Python. It works with Python 2.6, 2.7, 3.2 or 3.3. Get Python at http://www.python.org. If you're running Linux or Mac OS X, you proba

Python之环境搭建

简述 Python是跨平台的,它可以运行在Windows.Mac OS X和各种Linux/Unix系统上. 开始学习Python编程,首先需要搭建Python环境.完成后,会得到Python解释器(负责运行Python程序的),一个命令行交互环境,还有一个简单的集成开发环境. 可以通过终端窗口输入"python"命令来查看本地是否已经安装Python以及Python的安装版本. 下面以3.5为例,来介绍如何搭建本地的开发环境. 简述 Python安装 版本检测 Python安装 Py

优雅的使用Python之软件管理

常用软件包管理工具 一般python软件包管理工具,主要有以下: 图 常用python包管理工具 可以看到distribute是setuptools的替代方案(因为Setuptools包不再维护了),pip是easy_install的替代方案.本篇重点介绍pip,其它感兴趣的自行了解. pip最流行的软件包管理工具 pip的核心开发人员之一的 Donald Stufft,去年写了一篇博客详细描述了PyPI CDN供应商4天的流量.其中一个纬度展示,使用软件包管理工具从PyPI安装软件包的用户中,