前言
由于公司使用的python版本是python2,并且连接mysql的包是mysql-python,但是mysql-python 使用pip安装报错,需要C++环境等依赖,于是使用wheel直接安装源码、
安装步骤
- 安装whell
pip install whell
- 下载源码
网址:https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python
下载64位mysql-python
- 安装
在下载目录下:
pip install MySQL_python-1.2.5-cp27-none-win_amd64.whl
这样,安装就成功了,并且可以进行个人测试了。
[En]
In this way, the installation is successful and the personal test is available.
Original: https://www.cnblogs.com/cwp-bg/p/10627454.html
Author: 倥偬时光
Title: python之pip安装mysql-python失败
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/7925/
转载文章受原作者版权保护。转载请注明原作者出处!