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
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