One - One Code All

Blog Content

安装mysql-python 要求装vcpython27

Python   2008-01-05 17:03:23


pip install mysql-python  报错 error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27.  
由于Python默认调用VS2008编译器编译相关C代码,因此出现这种错误的原因可能有如下几个方面:
1.没有安装VS2008
2.安装了32位VS2008,使用64位python

解决办法:
1.去微软官方下载vcpython27,但可能网速问题下不下来。
2.去这个网址下载直接编译好的python包:http://www.lfd.uci.edu/~gohlke/pythonlibs/ 。


上一篇:系统基础工具箱windows
下一篇:vi文件操作快速清空

The minute you think of giving up, think of the reason why you held on so long.