下载python安装工具
下载地址: http://pypi.python.org/pypi/setup tools可以找到正确的版本下载。 win732位可下载setup tools-0.6c 11.win 32-py 2.7.exe。
注:必须使用ez_setup.py安装win764位。 方法是下载ez_setup.py,然后在cmd上运行pythonez_setup.py,将自动安装setuptools。 目前没有直接的exe安装版本。
下载完成后,双击运行安装文件,在d :program filespython 2.7scripts下安装easy_install。 包括easy_install.exe,按如下方式在系统环境变量中设置环境变量:
这意味着将d :program filespython 2.7scripts添加到环境变量中。)
此时,可以在控制台中确认是否安装了easy_install。
Microsoft windows [6.1. 7600版]
版权所有(c ) 2009微软公司。 保留所有权利。
(1)错误1 :
c :userszhuyupengeasy _ install
error:Nourls,filenames,orrequirementsspecified (see-- help ) ) ) ) ) ) ) ) ) ) ) )。
上述方法不正确。 必须使用以下方法:
c :userszhuyupengeasy _ installvirtualenv
Searching for virtualenv
Best match: virtualenv 1.7.2
processingvirtualenv-1.7.2-py 2.7.egg
virtualenv 1.7.2 isalreadytheactiveversionineasy-install.PTH
installingvirtualenv-script.pyscripttod :program filespython 2.7 scripts
installingvirtualenv.exescripttod :program filespython 2.7scripts
installingvirtualenv.exe.manifestscripttod :program filespython 2.7 scripts
installingvirtualenv-2.7-script.pyscripttod :program filespython 2.7 scripts
installingvirtualenv-2.7.exescripttod :program filespython 2.7 scripts
installingvirtualenv-2.7.exe.manifestscripttod :program filespython 2.7 scri
pts
usingd :program filespython 2.7libsite-packagesvirtualenv-1.7.2-py 2.7.egg
过程dependenciesforvirtualenv
finishedprocessingdependenciesforvirtualenv
lxml安装:
C:Userszhuyupeng
(2)错误2 :
直接使用时:
easy_installlxml
C :userszhuyupengeasy _ install lxml会出现以下问题:
错误:“XSLT-config”不是内部或外部命令
akesurethedevelopingpackagesoflibxml2andlibxsltareinstalledwindows
您可以使用安装. egg文件的方法进行安装。
在网站上下载相应的lxml.egg文件
然后,使用以下方法安装:
c :userszhuyupengeasy _ installd 3360program filespython 2.7 lxml-2.3.py 2.7.win32.egg
注意*.exe文件也可以这样安装
就这样安装成功了。
您可以在控制台中输入easy_installlxml来查看以下信息:
Microsoft windows [6.1. 7600版]
版权所有(c ) 2009微软公司。 保留所有权利。
c :userszhuyupengeasy _ install lxml
Searching for lxml
Best match: lxml 2.3.4
adding lxml2.3.4to easy-install.PTH文件
usingd :program filespython 2.7libsite-packages
Processing dependencies for lxml
finishedprocessingdependenciesforlxml
C:Userszhuyupeng
安装easy_install后,安装python的库就很简单了。 如果以后需要安装python的库,请直接在命令行中使用
easy_install libname
2 .另一种方法:
例如:
(1)。
c :userszhuyupengeasy _ install numpy
Searching for numpy
.
处理从属关系for numpy
finishedprocessingdependenciesfornumpy
这是下载安装的:
c :userszhuyupengeasy _ install ' d :program filespython 2.7matplotlib-1.1.0.win
32-py2.7.exe '
.
processingdependenciesformatplotlib==1.1.0
finishedprocessingdependenciesformatplotlib==1.1.0
C:Userszhuyupeng
注释:我们发现安装失败是软件包无法找到的原因。 截图:
)2) .因此,在numpy上下载和安装软件包.
download 1.70版本:
wenyounrarthezipfileandpointthesetup.py,waitforamoment,andthescreenwillshow:
因为py文件的安装失败,所以更改了方法
(3).http://在matplotlib.org/downloads.html下载
使用easy_install安装,
这样安装就成功了! 呃!
附有描绘爱情的程序:
' ' ' 17*x^2 - 16*|x|*y 17*y^2=225 '
“”'
导入编号为NP
import matplotlib.pyplot as plt
x=NP.arange(-5.0、5.0、0.1 ) )。
y=NP.arange(-5.0、5.0、0.1 ) )。
x,y=NP.meshgrid(x,y ) )。
f=17*x**2-16*NP.ABS(x ) * y 17 * y ** 2 - 225
fig=plt.figure (
cs=PLT.contour(x,y,f,0,colors='r ' ) )
plt.show () )
makeitsimple,makeithappen
结语:对于AMD64,可能找不到兼容库。 只能安装32位的python .
3 .其实在win上可以直接EXE :
在3http://www.lfd.UCI.edu//Goh lke/python libs/# python-date util页面下载大部分可用的exe软件包.
如果无法部署MutilArray,请卸载并重新安装Numpy和SciPy。