V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Rice
V2EX  ›  Python

mysqldb貌似安装失败了

  •  
  •   Rice · May 29, 2011 · 4600 views
    This topic created in 5459 days ago, the information mentioned may be changed or developed.
    我是python2.6,然后下载了一个MySQL-python-1.2.3.tar.gz来安装,python setup.py install,结果提示什么unable to find vcvarsall.bat.
    后来找了一个MySQL-python-1.2.2.win32-py2.6来安装,结果我测试 import mysql出错,没有安装成功,怎么回事?
    3 replies    1970-01-01 08:00:00 +08:00
    zhouyang
        1
    zhouyang  
       May 29, 2011
    学Python建议装个ubuntu

    mysqldb应该是用import MySQLdb吧。。。
    Rice
        2
    Rice  
    OP
       May 29, 2011
    @zhouyang 貌似是,还要区分大小写啊?
    Rice
        3
    Rice  
    OP
       May 29, 2011
    @zhouyang 原来是我弄错了,要import MySQLdb才对
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2995 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 278ms · UTC 04:34 · PVG 12:34 · LAX 21:34 · JFK 00:34
    ♥ Do have faith in what you're doing.