首页 > 代码库 > 关于windows64位下安装ez_install
关于windows64位下安装ez_install
由于刚来不久,师兄不给服务器root权限,导致装python模块很麻烦,所以想在windows下折腾一个python来装模块,中间出了很多问题,废话不多说。先说说遇到些什么问题:
1:ez_install无法正常安装,一直报错。
2:pip安装biopython报错:error: Unable to find vcvarsall.bat
首先,我找到了一个安装ez——install.py比较简单的方法
先用IDLE:
Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> from urllib import urlopen
>>> data = http://www.mamicode.com/urlopen(’http://peak.telecommunity.com/dist/ez_setup.py’)
>>> open(’ez_setup.py’,’wb’).write(data.read())
>>> exit
Use exit() or Ctrl-Z plus Return to exit
然后是cmd命令行:
D:\ProgramFile\Python2.7>python ez_setup.py
Downloading http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-p
y2.7.egg
Processing setuptools-0.6c11-py2.7.egg
Copying setuptools-0.6c11-py2.7.egg to d:\programfile\python2.7\lib\site-package
s
Adding setuptools 0.6c11 to easy-install.pth file
Installing easy_install-script.py script to D:\ProgramFile\Python2.7\Scripts
Installing easy_install.exe script to D:\ProgramFile\Python2.7\Scripts
Installing easy_install.exe.manifest script to D:\ProgramFile\Python2.7\Scripts
Installing easy_install-2.7-script.py script to D:\ProgramFile\Python2.7\Scripts
Installing easy_install-2.7.exe script to D:\ProgramFile\Python2.7\Scripts
Installing easy_install-2.7.exe.manifest script to D:\ProgramFile\Python2.7\Scri
pts
Installed d:\programfile\python2.7\lib\site-packages\setuptools-0.6c11-py2.7.egg
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11
这时候很烦,错误来了总是不爽,然后找了下方法,安装这个软件,因为这个软件在默认目录下会生成一个vcvarsall.bat,下载地址:http://www.microsoft.com/en-us/download/confirmation.aspx?id=44266
安装后 还是不行,发现需要更新下setuptools
于是,在cmd下输入:pip --upgrade setuptools
更新成功后再用pip install biopython安装即可
by milkcookie
FAFU
关于windows64位下安装ez_install