python mysql安装失败
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python mysql安装失败相关的知识,希望对你有一定的参考价值。
当我试图在python中安装mysql
时
使用此命令python -m pip install mysql
谁能帮我这个?
收集mysql使用缓存的mysql-0.0.1.tar.gz收集MySQL-python(来自mysql)使用缓存的MySQL-python-1.2.5.zip安装收集的包:MySQL-python,mysql运行setup.py install for MySQL-python ...错误从命令C完成输出: Users vishnuvardhan12137 AppData Local Programs Python Python36-32 python.exe -u -c“import setuptools,tokenize; file ='C: Users VISHNU~ 1 AppData Local Temp pip-build-lw04ypbu MySQL-python setup.py'; f = getattr(tokenize,'open',open)(file); code = f.read()。replace(' r n',' n'); f.close(); exec(编译(代码,文件,'exec'))“install --record C: Users VISHNU~1 AppData Local Temp pip-0awclynb-record install-record.txt --single-version-external-managed --compile:running install running build running build_py创建构建创建build lib.win32-3.6复制_mysql_exceptions.py - > build lib .win32-3.6创建build lib.win32-3.6 MySQLdb复制MySQLdb__init__.py - > build lib.win32-3.6 MySQLdb复制MySQLdb converters.py - > build lib.win 32-3.6 MySQLdb复制MySQLdb connections.py - > build lib.win32-3.6 MySQLdb复制MySQLdb cursors.py - > build lib.win32-3.6 MySQLdb复制MySQLdb release.py - > build lib .win32-3.6 MySQLdb复制MySQLdb times.py - > build lib.win32-3.6 MySQLdb创建build lib.win32-3.6 MySQLdb constants复制MySQLdb constants__init __。py - > build lib.win32-3.6 MySQLdb constants复制MySQLdb constants CR.py - > build lib.win32-3.6 MySQLdb constants复制MySQLdb constants FIELD_TYPE.py - > build lib.win32-3.6 MySQLdb constants复制MySQLdb constants ER.py - > build lib.win32-3.6 MySQLdb constants复制MySQLdb constants FLAG.py - > build lib.win32-3.6 MySQLdb constants复制MySQLdb constants REFRESH.py - > build lib.win32-3.6 MySQLdb constants复制MySQLdb constants CLIENT.py - > build lib.win32-3.6 MySQLdb constants运行build_ext构建'_mysql'扩展错误:Microsoft Visual C ++ 14.0是必需的。使用“Microsoft Visual C ++构建工具”获取它:http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------命令“C: Users vishnuvardhan12137 AppData Local Programs Python Python36-32 python.exe -u -c“import setuptools,tokenize; file ='C: Users VISHNU~1 AppData Local Temp pip-build-lw04ypbu 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 VISHNU~1 AppData Local Temp pip-0awclynb-record install-record.txt --single-版本 - 外部管理 - 编译“失败,错误代码1在C: Users VISHNU~1 AppData Local Temp pip-build-lw04ypbu MySQL-python
它说它需要Microsoft Visual C ++ 14.0。您是否尝试安装该版本的Microsoft Visual C ++?并且看看这篇文章也一样。 Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)
以上是关于python mysql安装失败的主要内容,如果未能解决你的问题,请参考以下文章