Python错误:命令'... \ Microsoft Visual Studio 10.0 \\ VC \\ BIN \\ cl.exe'失败,退出状态为2 [英] Python error: command '...\Microsoft Visual Studio 10.0\\VC\\BIN\\cl.exe' failed with exit status 2

查看:221
本文介绍了Python错误:命令'... \ Microsoft Visual Studio 10.0 \\ VC \\ BIN \\ cl.exe'失败,退出状态为2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在安装python 3模块时遇到一些问题. 我正在尝试使用pip安装mysql:

I have some problems with python 3 module installing. I'm trying to install mysql using pip :

python -m pip install mysql

对于python 3.4.4,这是我得到的错误:

for python 3.4.4 and here is the error I get:

error: command 'C:\\Program Files (x86\\Microsoft Visual Studio 10.0\\VC\\BIN\\cl.exe' failed with exit status 2

这是屏幕截图:错误消息的屏幕截图

以前,我在模块安装上还有其他问题,我通过安装Visual Studio C ++ 2010解决了这些问题

I had other problems with module installation before, and I solved those by installing Visual Studio C++ 2010

顺便说一句,其他模块的安装工作正常.

Btw, the installation of other modules are working just fine.

我的规格: Windows 10 x64

My specs : Windows 10 x64

Python 3.4.4 x86

Python 3.4.4 x86

推荐答案

是否已安装连接器? (另请参见此处)

Do you have Connector installed? (See also here)

在此处下载并安装.

可能是由于您拥有x64 Windows,但是mysql希望文件位于"Program Files(x86)"目录中:

It can be due to you have x64 Windows, but mysql wants files to be in "Program Files (x86)" directory:

mklink /d "C:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include" "C:\Program Files\MySQL\MySQL Connector C 6.0.2\include"

如果没有帮助,请尝试从发布该内容的其他答案

If won't help, try other answers from that post

这篇关于Python错误:命令'... \ Microsoft Visual Studio 10.0 \\ VC \\ BIN \\ cl.exe'失败,退出状态为2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆