What are wheels?
Wheels are the new standard of python distribution and are intended to replace eggs. Support is offered in pip >= 1.4
and setuptools >= 0.8
.
Advantages of wheels
- Faster installation for pure python and native C extension packages.
- Avoids arbitrary code execution for installation. (Avoids setup.py)
- Installation of a C extension does not require a compiler on Windows or macOS.
- Allows better caching for testing and continuous integration.
- Creates .pyc files as part of installation to ensure they match the python interpreter used.
- More consistent installs across platforms and machines.
MySQL-python只是有32位系统安装包,如果下载exe或者pip安装,也会报错。
报错如下:
_mysql.c() : fatal error C1083: Cannot include : : No s uch directory error: command l.exe---------------------------------------- Cleaning up... Command C:\Users\Admin1\Desktop\python\virtual\Scripts\python.exe -c uptools, tokenize;__file__=MySQL-python\\setup.pyead().replace(, ), __file__, ))\appdata\local\temp\\pip-pmwrd-record\install-record.txt --single-version-ext ernally-managed ----install-headers C:\Users\Admin1\Desktop\python\virtu al\include\site\python2failed error code C:\Users\Admin1\Desktop\py thon\virtual\build\MySQL-python Storing debug log failure C:\Users\Admin1\pip\pip.
需要安装MYSQL数据库和vc相关库,而自己只需要方便远程连接对服务器数据库操作和学习python,所以没有必要安装这些。
找到如下解决方法:
install using wheel
pip install wheel
MySQL_python安装版本 http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python
下载后,直接使用pip安装:
pip install MySQL_python-1.2.5-cp27-none-win_amd64.whl
如下:
这样就安装成功。
本文出自 “都市布衣” 博客,请务必保留此出处http://sunday208.blog.51cto.com/377871/1746404