首页 > 数据库技术 > 详细

python3_pip_window10_"pymysql install"

时间:2018-09-26 11:21:20      阅读:235      评论:0      收藏:0      [点我收藏+]
python3 pymysql install
question
window10 install pymysql

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
resolve
http://www.lfd.uci.edu/~gohlke/pythonlibs/

download

pip install  numpy?1.13.1+mkl?cp36?cp36m?win_amd64.whl 

#  setting.py
import pymysql
pymysql.install_as_MySQLdb()
DATABASES = {
    ‘default‘: {
        ‘ENGINE‘: ‘django.db.backends.mysql‘,
        ‘NAME‘: ‘devops‘, 
        ‘USER‘: ‘root‘,     
        ‘PASSWORD‘: ‘123456‘, 
        ‘HOST‘: ‘1.1.1.1‘, 
        ‘PORT‘: ‘3306‘,        
    }
}

python3_pip_window10_"pymysql install"

原文:https://www.cnblogs.com/chaogod/p/9705799.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!