【发布时间】:2019-03-21 07:47:26
【问题描述】:
我试过安装mysql
pip install mysql
但我每次都得到这个:
Command "c:\users\j\appdata\local\programs\python
\python37-32\python.exe -u -c "import setuptools,
tokenize;__file__='C:\\Users\\jmodiano\\AppData\\Local\\
Temp\\pip-install-z5ktsicz\\mysqlclient\\setup.py';f=getattr
(tokenize, 'open', open)(__file__);code=f.read().replace
('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))
" install --record C:\Users\j\AppData\Local\Temp\pip-
record-99629v1_\install-record.txt --single-version-externally-
managed --compile" failed with error code 1 in
C:\Users\j\AppData\Local\Temp\pip-install-z5ktsicz\mysqlclient\
我尝试在不同的文件夹中安装,但总是出现相同的错误。不知道我做错了什么,因为它看起来很简单。
【问题讨论】:
-
AFAIK mysql 客户端(Windows 的二进制/开发版本)应该在之前安装。像这样stackoverflow.com/a/25865271/2971192 但适用于 Windows。
标签: python mysql-python