python安装第三方库一般方式和easy_install方式
来源:互联网 发布:淘宝客软件哪个好 编辑:程序博客网 时间:2024/04/30 18:48
python安装第三方库
一般方式
下载压缩包,解压出来,找到setup.py文件
命令行下使用
X:/解压路径下> python setup.py install
完成后查看
F:/Python25/Lib/site-packages/
下面,会多一个目录
然后在 解释器里可以使用 import 目录名
有些不是直接目录名的
如 .egg 结尾的目录,会找里面除 EGG-INFO 外的另一个目录名,可以 import 这个目录名
easy_install方式
用于安装egg扩展名的包,egg可以认为就是zip,只是扩展名不同。
会安装到
F:/Python25/Scripts/
把这个路径追加到 系统环境变量 PATH 中
也可以 找到 ez_setup.py
easy_install的一些用法
在命令行上 指定包的名称(会搜索PyPI)、指定包文件的网上路径、本地文件路径、当前目录 进行安装和更新
X:/> easy_install 路径
http://peak.telecommunity.com/DevCenter/EasyInstall
Downloading and Installing a Package
For basic use of easy_install, you need only supply the filename or URL of a source distribution or .egg file (Python Egg).
Example 1. Install a package by name, searching PyPI for the latest version, and automatically downloading, building, and installing it:
easy_install SQLObject
Example 2. Install or upgrade a package by name and version by finding links on a given "download page":
easy_install -f http://pythonpaste.org/package_index.html SQLObject
Example 3. Download a source distribution from a specified URL, automatically building and installing it:
easy_install http://example.com/path/to/MyPackage-1.2.3.tgz
Example 4. Install an already-downloaded .egg file:
easy_install /my_downloads/OtherPackage-3.2.1-py2.3.egg
Example 5. Upgrade an already-installed package to the latest version listed on PyPI:
easy_install --upgrade PyProtocols
Example 6. Install a source distribution that's already downloaded and extracted in the current directory (New in 0.5a9):
easy_install .
Example 7. (New in 0.6a1) Find a source distribution or Subversion checkout URL for a package, and extract it or check it out to ~/projects/sqlobject (the name will always be in all-lowercase), where it can be examined or edited. (The package will not be installed, but it can easily be installed with easy_install ~/projects/sqlobject. See Editing and Viewing Source Packages below for more info.):
easy_install --editable --build-directory ~/projects SQLObject
- python安装第三方库一般方式和easy_install方式
- python easy_install离线安装方式
- WINDOS下用EASY_INSTALL,PIP安装PYTHON第三方库
- pip easy_install 安装python第三方库 超时报错
- [easy_install]常用安装和卸载第三方库方法
- 命令行方式安装Python第三方工具包
- easy_install 安装、卸载第三方库
- python 安装 easy_install 的三种方式
- Python使用easy_install安装第三方插件、安装包
- 使用easy_install安装python第三方模块的方法
- pip和easy_install使用方式及pygal安装方式
- python 第三方库的安装方式(Windows、Linunx都适用)
- Python安装easy_install报错的处理方式
- pip和easy_install使用方式
- pip和easy_install使用方式
- pip和easy_install使用方式
- pip和easy_install使用方式
- Delphi第三方控件安装方式
- java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.FilterDispatch
- 服务器提交协议冲突 Section=ResponseStatusLine 的解决办法
- SQL如何合并查询结果
- Flex tips
- 解决MySQL从库延迟问题的几种方法
- python安装第三方库一般方式和easy_install方式
- 银行卡的交易与结算流程(转)
- SetWindowPos
- 使用MySQL Proxy解决MySQL主从同步延迟
- QString char*
- 利用批处理批量重命名文件
- 银行卡的清分、对帐与清算(转)
- XMLHttpRequest介绍
- XMLHttpRequest介绍