Windows 下 Python easy_install 的安装
来源:互联网 发布:linux 如何安装idea 编辑:程序博客网 时间:2024/06/06 11:48
注:转自 http://blog.csdn.net/weihongchang/article/details/40822015
下载安装python安装工具
下载地址:http://pypi.python.org/pypi/setuptools 可以找到正确的版本进行下载。win7 32位可以下载setuptools-0.6c11.win32-py2.7.exe 。
注意:win7 64位必须使用ez_setup.py进行安装。方法是下载ez_setup.py后,在cmd下执行 python ez_setup.py,即可自动安装setuptools。目前没有直接的exe安装版本。
下载完成后双击执行安装文件,即可在D:\Program Files\python2.7\scripts下安装easy_install。包含一个easy_install.exe,然后进行环境变量设置,在系统环境变量中做如下设置:
(也就是将D:\Program Files\python2.7\scripts添加到环境变量中)
此时可以在控制台看easy_install 是否安装上了。
C:\>easy_install
error: No urls, filenames, or requirements specified (see --help)
上面这种方式不正确,需要使用下面的方式:
C:\>easy_install virtualenv
Searching for virtualenv
Best match: virtualenv 1.7.2
Processing virtualenv-1.7.2-py2.7.egg
virtualenv 1.7.2 is already the active version in easy-install.pth
Installing virtualenv-script.py script to D:\Program Files\Python2.7\Scripts
Installing virtualenv.exe script to D:\Program Files\Python2.7\Scripts
Installing virtualenv.exe.manifest script to D:\Program Files\Python2.7\Scripts
Installing virtualenv-2.7-script.py script to D:\Program Files\Python2.7\Scripts
Installing virtualenv-2.7.exe script to D:\Program Files\Python2.7\Scripts
Installing virtualenv-2.7.exe.manifest script to D:\Program Files\Python2.7\Scri
pts
Using d:\program files\python2.7\lib\site-packages\virtualenv-1.7.2-py2.7.egg
Processing dependencies for virtualenv
Finished processing dependencies for virtualenv
如果直接使用:
easy_install lxml
C:\> easy_install lxml 则会出现下面问题:
ERROR:‘xslt-config’ 不是内部或外部命令
make sure the developing packages of libxml2 and libxslt are installed windows
可以使用安装.egg 文件的方式来安装:
到
http://pypi.python.org/pypi/lxml/2.3/
然后使用下面的方式来安装:
C:\> easy_install D:\Program Files\Python2.7\lxml-2.3.py2.7.win32.egg
注:对于*.exe 文件这样也可以安装
通过这样的方式就可以安装成功了:
可以通过在控制台输入:easy_install lxml 来查看:
C:\>easy_install lxml
Searching for lxml
Best match: lxml 2.3.4
Adding lxml 2.3.4 to easy-install.pth file
Using d:\program files\python2.7\lib\site-packages
Processing dependencies for lxml
Finished processing dependencies for lxml
安装了easy_install 之后安装python的库就很简单了,以后需要安装python的库的话则直接在命令行使用
easy_install + libname
0 0
- Windows 下 Python easy_install 的安装---转载
- Windows 下 Python easy_install 的安装
- Windows 下 Python easy_install 的安装
- Windows 下 Python easy_install 的安装
- Windows 下 Python easy_install 的安装
- windows 下 easy_install 的安装
- [Python] easy_install 和 pip 在windows 下的安装
- windows下python安装easy_install和pip
- Win7下Python easy_install的安装
- Windows 下 Python easy_install 的安装 并安装lxml扩展包
- Python-- easy_install 的安装
- Python-- easy_install 的安装
- Python-- easy_install 的安装
- Python-easy_install的安装
- Python-- easy_install 的安装
- Python-- easy_install 的安装
- python easy_install的安装
- Windows安装Python、pip、easy_install
- Runtime方法的使用—Protocol、SEL篇
- 数据库的查询数据解析、绑定、执行、提取
- android shape的使用详解以及常用效果(渐变色、分割线、边框、半透明阴影效果等)
- iOS 毛玻璃
- 内建模块-datetime
- Windows 下 Python easy_install 的安装
- Android开发必备技能——修改debug签名
- hiho第七十一周 Constellations
- Spring与Quartz的整合实现定时任务调度
- mybatis+easyui+Oracle分页查询
- ThinkPHP3.2 应用系统验证码
- 关于CGContextRef开发中的一个疏忽
- webstrom11.03破解方法
- 统计MYSQL某个库的总数据量