windows7 64 bits 安装 MySQL-python-1.2.4b4.win32-py2.7.exe
安装时提示需要python2.7,但是此时python2.7已经添加到环境变量中,要解决这个问题,可以使用如下的方法:
在D盘新建register.py的文件,内容如下:
#
# script to register Python 2.0 or later for use with win32all
# and other extensions that require Python registry settings
#
# written by Joakim Loew for Secret Labs AB / PythonWare
#
# source:
# http://www.pythonware.com/products/works/articles/regpy20.htm
#
# modified by Valentine Gogichashvili as described in http://www.mail-archive.com/[email protected]/msg10512.html
import sys
from _winreg import *
1、安装mysql首先到mysql官网下载文件:mysql-installer-community.msi 安装过程同一般exe文件,不再叙述,直接下一步即可;
2、安装MySQL-python-1.2.3
直接根据web.py给出 的链接,下载文件MySQL-python.tar.gz 解压到任意目录
然后在cmd命令行行下进行安装;
C:\...>python setup.py install
C:\...>python setup.py bdist_wininst
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)