关于python一些环境的部署:
在用python的时候老是会碰到一些环境问题,比如说没有xxx模组,那么我们用pip或者easy_install 可以解决。有时候又很烦?比如:
出现了这种情况就要用easy_install
但是easy_installl 有时候也不能解决。比如我Win10 64:安装mysql-python:_mysql.c(42) : fatal error C1083: Cannot open includefile: 'config-win.h': No such file or directory
在安装MySQL-python时报错:
_mysql.c
_mysql.c(42) : fatal error C1083:Cannot open include file: 'config-win.h': No s uch file or directory
error: command'"C:\Users\fnngj\AppData\Local\Programs\Common\Microsoft\Visual C ++ forPython\9.0\VC\Bin\amd64\cl.exe"' failed with exit status 2
但是我已经安装了c的库了。所以不是这方面出了问题,mysql我也都弄好了。
我down下egg来安装看了下,还是一样。
后面在国外的社区发现只要安装:MySQL-python-1.2.3.win-amd64-py2.7.exe 就可以了
下载链接:http://dev.mysql.com/downloads/file/?id=465648
而我这个还需要下载一个mysql连接器:http://dev.mysql.com/downloads/connector/python/
哈哈,安装这个扫描神器带来的问题解决:
而我安装这个lxml这个模块,也会造成类似的失败,那么就要自己去下载一下.egg .whl之类的文件回来本地安装了。