1.python 下载扩展包
地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient
手动安装扩展
安装方法 使用pyenv 管理python 中的 pip 安装 方式
D:\pyevn\.pyenv\pyenv-win\versions\2.7.13\Scripts\pip.exe install MySQL_python-1.2.5-cp27-none-win_amd64.whl
可能会遇到以下问题
操作系统:Windows 10 64位
报错如下:
error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27
解决方法:下载 VCForPython27.msi 。
地址: http://www.microsoft.com/en-us/download/confirmation.aspx?id=44266
(Microsoft Visual C++ Compiler for Python 2.7)
然后再重新安装依赖库
2.批量安装扩展包
D:\pyevn\.pyenv\pyenv-win\versions\2.7.13\Scripts\pip.exe install -r requirements.txt
requirements.txt 内容如下 # 代表注释掉
amqp == 1.4.9
#amqplib == 1.0.2
anyjson == 0.3.3
certifi == 2018.11.29
chardet == 3.0.4
demjson == 1.6
#dicttoxml == 1.7.4
gevent == 1.1.1
greenlet == 0.4.15
httplib2 == 0.9
idna == 2.8
importlib == 1.0.3
JPype1 == 0.6.2
kafka == 1.2.4
kombu == 3.0.30
#leveldb == 0.19
Mako == 1.0.1
MarkupSafe == 1.1.0
msgpack-python == 0.4.0
MySQL-python == 1.2.3
oss2 == 2.1.1
pycrypto == 2.6.1
pyDes == 2.0.1
pymongo == 2.2.1
pyOpenSSL == 19.0.0
python-memcached == 1.53
redis == 2.9.1
requests == 2.21.0
setuptools == 40.6.3
simplejson == 2.1.2
six == 1.12.0
suds == 0.4
timelib == 0.2.4
urllib3 == 1.24.3
#uWSGI == 2.0.18
uwsgitop == 0.6.2
web.py == 0.37
wheel == 0.32.3
pytz
#rsa
shortuuid
alipay-sdk-python==3.0.0b1
其他环境安装差不多 使用对应的pip 安装即可