【发布时间】:2017-08-11 03:17:57
【问题描述】:
我在 Windows 10 上,我一直在尝试 pip install mysql,但不断收到错误消息:
error: command 'c1.exe' failed: No such file or directory
我在 C:\Program Files (x86)\ 安装了 Microsoft VC 14 由于某种原因,当我安装 python 时,它安装在 C:\Users\name\AppData\Local\Programs\Python\Python36
我尝试将 c1.exe 移动到 python 文件夹中,但这没有帮助。 我需要将 python 文件夹移动到其他地方吗?这会以任何方式弄乱python吗?有更简单的解决方法吗?
更新:我更改了 PATH 变量,它解决了这个错误。然后它转移到一个新的错误:
我更改了路径,它解决了错误。然后又出现了一个新的错误,好像和c1.exe的执行有关:
_mysql.c
_mysql.c(42): fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\x86_amd64\\c1.exe' failed with exit status 2`
【问题讨论】:
-
为什么要使用 pip 安装 MySQL?
标签: python mysql visual-studio-2015 pip