Python 错误::在windows中使用pip安装MySql

Python 错误::在windows中使用pip安装MySql,python,sql,pip,Python,Sql,Pip,我想把python和MySQL数据库连接起来,但是我被绊倒了。这是我发出的命令:pip install MySQL,但是在那之后sql没有安装,我遇到了这个错误。有人能建议我做什么吗 Collecting mysql Using cached https://files.pythonhosted.org/packages/06/ef/c4efbf2a51fb46aba9be03a973638d9539c9ca10a5259b2cbb1a66133b2e/mysql-0.0.1.tar.gz

我想把python和MySQL数据库连接起来,但是我被绊倒了。这是我发出的命令:
pip install MySQL
,但是在那之后sql没有安装,我遇到了这个错误。有人能建议我做什么吗

Collecting mysql
  Using cached https://files.pythonhosted.org/packages/06/ef/c4efbf2a51fb46aba9be03a973638d9539c9ca10a5259b2cbb1a66133b2e/mysql-0.0.1.tar.gz
Collecting MySQL-python (from mysql)
  Using cached https://files.pythonhosted.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip
Installing collected packages: MySQL-python, mysql
  Running setup.py install for MySQL-python ... error
    Complete output from command "c:\users\kuldeep sharma\appdata\local\programs\python\python35\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\KULDEE~1\\AppData\\Local\\Temp\\pip-install-cc8pga51\\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 C:\Users\KULDEE~1\AppData\Local\Temp\pip-record-0d1bgkuf\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.5
    copying _mysql_exceptions.py -> build\lib.win-amd64-3.5
    creating build\lib.win-amd64-3.5\MySQLdb
    copying MySQLdb\__init__.py -> build\lib.win-amd64-3.5\MySQLdb
    copying MySQLdb\converters.py -> build\lib.win-amd64-3.5\MySQLdb
    copying MySQLdb\connections.py -> build\lib.win-amd64-3.5\MySQLdb
    copying MySQLdb\cursors.py -> build\lib.win-amd64-3.5\MySQLdb
    copying MySQLdb\release.py -> build\lib.win-amd64-3.5\MySQLdb
    copying MySQLdb\times.py -> build\lib.win-amd64-3.5\MySQLdb
    creating build\lib.win-amd64-3.5\MySQLdb\constants
    copying MySQLdb\constants\__init__.py -> build\lib.win-amd64-3.5\MySQLdb\constants
    copying MySQLdb\constants\CR.py -> build\lib.win-amd64-3.5\MySQLdb\constants
    copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win-amd64-3.5\MySQLdb\constants
    copying MySQLdb\constants\ER.py -> build\lib.win-amd64-3.5\MySQLdb\constants
    copying MySQLdb\constants\FLAG.py -> build\lib.win-amd64-3.5\MySQLdb\constants
    copying MySQLdb\constants\REFRESH.py -> build\lib.win-amd64-3.5\MySQLdb\constants
    copying MySQLdb\constants\CLIENT.py -> build\lib.win-amd64-3.5\MySQLdb\constants
    running build_ext
    building '_mysql' extension
    error: [WinError 2] The system cannot find the file specified

    ----------------------------------------
Command ""c:\users\kuldeep sharma\appdata\local\programs\python\python35\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\KULDEE~1\\AppData\\Local\\Temp\\pip-install-cc8pga51\\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 C:\Users\KULDEE~1\AppData\Local\Temp\pip-record-0d1bgkuf\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\KULDEE~1\AppData\Local\Temp\pip-install-cc8pga51\MySQL-python\

可能的答案看看这里,看看这是否有帮助,它没有得到一个被接受的答案,但是看看答案是否有效:)我没有使用Django,它怎么可能是重复的。我会检查是否有答案可以支持这就是为什么我说也许这个答案可以帮助你