怎么安装mysql-python-1.2.3.win32-py2.7

怎么安装mysql-python-1.2.3.win32-py2.7,第1张

可以使用如下方式进行安装。

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


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/6102575.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-03-14
下一篇 2023-03-14

发表评论

登录后才能评论

评论列表(0条)

保存