一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

windows下python安装sqlalchemy教程

时间:2013-04-04 编辑:简简单单 来源:一聚教程网

如果是windows操作系统,我们需要先安装easy_install,那么我们先来安装easy_install

.安装setuptools(easy_install):
a.如果是32位的windows操作系统
32位的windows操作系统,直接找到对应的exe,然后安装即可

b.如果是64位的windows操作系统
windows 64为下没有安装包,需要自己编译安装,过程如下:
下载ez_setup.py
运行:

 代码如下 复制代码
python ez_setup.py

2.然后配置环境变量:
例如我电脑将路径:D:toolsPython27Scripts
添加到环境变量中

--EOF--

安装成功easy_install之后我们再来给python安装sqlalchemy

然后执行下面的命令

 代码如下 复制代码

easy_install SQLAlchemy

显示如下,安装成功:

 代码如下 复制代码

D:>easy_install SQLAlchemy
Searching for SQLAlchemy
Reading http://pypi.python.org/simple/SQLAlchemy/
Reading http://www.sqlalchemy.org
Best match: SQLAlchemy 0.8.0b2
Downloading http://pypi.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-0.8.0
b2.tar.gz#md5=09537c7b425d0be433f7aceabbf23d68
Processing SQLAlchemy-0.8.0b2.tar.gz
Running SQLAlchemy-0.8.0b2setup.py -q bdist_egg --dist-dir c:usersw3appdata
localtempeasy_install-lnagt1SQLAlchemy-0.8.0b2egg-dist-tmp-0flwk1
warning: no files found matching '*.jpg' under directory 'doc'
no previously-included directories found matching 'docbuildoutput'
***************************************************************************
Unable to find vcvarsall.bat
WARNING: The C extension could not be compiled, speedups are not enabled.
Failure information, if any, is above.
Retrying the build without the C extension now.
***************************************************************************
warning: no files found matching '*.jpg' under directory 'doc'
no previously-included directories found matching 'docbuildoutput'
zip_safe flag not set; analyzing archive contents...
***************************************************************************
WARNING: The C extension could not be compiled, speedups are not enabled.
Plain-Python build succeeded.
***************************************************************************
Adding sqlalchemy 0.8.0b2 to easy-install.pth file

Installed d:toolspython27libsite-packagessqlalchemy-0.8.0b2-py2.7.egg
Processing dependencies for SQLAlchemy
Finished processing dependencies for SQLAlchemy

D:>
--EOF--

热门栏目