C:\Windows\system32>pip install MySQL-python
收集MySQL-python中
使用缓存的MySQL-python-1.2.5.zip(108 KB)
由于未安装软件包“wheel”,因此使用旧版setup.py安装MySQL-python。
正在安装已收集的软件包:MySQL-python
运行setup.py安装程序以进行MySQL-python...错误
错误:命令以退出状态1结束:
command: 'C:\Users\Pavan P\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Pavan P\AppData\Local\Temp\pip-install-6b6uth5n\MySQL-python\setup.py'"'"'; file='"'"'C:\Users\Pavan P\AppData\Local\Temp\pip-install-6b6uth5n\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\Pavan P\AppData\Local\Temp\pip-record-lt8udbbu\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Pavan P\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Include\MySQL-python'
cwd: C:\Users\Pavan P\AppData\Local\Temp\pip-install-6b6uth5n\MySQL-python
完整输出(24行):
运行安装程序
正在构建
正在构建py
创建构建
创建build \ lib.win-amd64-3.8
复制mysql_exceptions.py-> build \ lib.win-amd64-3.8
创建build \ lib.win-amd64-3.8 \ MySQLdb
复制MySQLdb_init.py-> build \ lib.win-amd64-3.8 \ MySQLdb
复制MySQLdb \ converters.py-> build \ lib.win-amd64-3.8 \ MySQLdb
复制MySQLdb \ connections.py-> build \ lib.win-amd64-3.8 \ MySQLdb
复制MySQLdb \ cursors.py-> build \ lib.win-amd64-3.8 \ MySQLdb
复制MySQLdb \ release.py-> build \ lib.win-amd64-3.8 \ MySQLdb
复制MySQLdb \ times.py-> build \ lib.win-amd64-3.8 \ MySQLdb
创建build \ lib.win-amd64-3.8 \ MySQLdb \ constants
复制MySQLdb \ constants_init_.py-> build \ lib.win-amd64-3.8 \ MySQLdb \ constants
复制MySQLdb \ constants \ CR.py-> build \ lib.win-amd64-3.8 \ MySQLdb \ constants
复制MySQLdb \ constants \ FIELD_TYPE.py-> build \ lib.win-amd64-3.8 \ MySQLdb \ constants
复制MySQLdb \ constants \ ER.py-> build \ lib.win-amd64-3.8 \ MySQLdb \ constants
复制MySQLdb \ constants \ FLAG.py-> build \ lib.win-amd64-3.8 \ MySQLdb \ constants
复制MySQLdb \ constants \ REFRESH.py-> build \ lib.win-amd64-3.8 \ MySQLdb \ constants
复制MySQLdb \ constants \ CLIENT.py-> build \ lib.win-amd64-3.8 \ MySQLdb \ constants
正在构建扩展:
正在构建'_mysql'扩展名
错误:需要Microsoft Visual C++ 14.0。使用“Visual Studio Build Tools”获取它:https://visualstudio.microsoft.com/downloads/
----------------------------------------
错误:命令以退出状态1结束:
command: 'C:\Users\Pavan P\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n