mysqlclient的构建轮失败 [英] Failed building wheel for mysqlclient
本文介绍了mysqlclient的构建轮失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已将wheel下载到最新版本
I downloaded wheel to the most recent version
但是我不完全确定如何制作此半隐式错误消息
But I'm not entirely sure how to make of this semi-cryptic error message
Failed building wheel for mysql-python
Command "/Users/username/Desktop/Project/venv/bin/python -u -c "import setuptools,
tokenize;__file__='/private/var/folders/bg/_nsyc_vxasdfx___h11f3jw00000gn/T/pip-build-rBf9R1/mysql-python/setup.py';
f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');
f.close();exec(compile(code, __file__, 'exec'))"
install --record /var/folders/bg/_nsyc_vx4g___xbsh11f3jw00000gn/T/pip-Tjwbij-record/install-record.txt --single-version-externally-managed
--compile --install-headers /Users/username/Desktop/project/venv/include/site/python2.7/mysql-python" failed with error code 1 in
/private/var/folders/bg/_nsyc_vxasdf__xbsh11f3jw00000gn/T/pip-build-rBf9R1/mysql-python/
我尝试了
pip install --upgrade wheel
我明白了
Requirement already up-to-date: wheel
MySQL版本
mysql Ver 14.14 Distrib 5.7.10, for osx10.11 (x86_64) using EditLine wrapper
推荐答案
主题虽然很老,但对于可能会遇到此问题的人来说,这可以是您的解决方案:
The topic is quite old but for the people who might be suffered from having this problem,this can be your solution:
首先,必须打开使用Python的文件,例如3.5、3.6,Anaconda等.然后在该文件中打开cmd并运行以下命令:
First of all,you must open the file where you use Python like 3.5,3.6,Anaconda etc. Then open cmd in that file and run the command below:
$ pip install mysqlclient==1.3.12
这篇关于mysqlclient的构建轮失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文