200字范文,内容丰富有趣,生活中的好帮手!
200字范文 > windows下安装python和mysql_Windows 10安装Python 2.7和MySQL-python

windows下安装python和mysql_Windows 10安装Python 2.7和MySQL-python

时间:2022-01-16 12:07:23

相关推荐

windows下安装python和mysql_Windows 10安装Python 2.7和MySQL-python

Windows

Windows操作系统

Win7

Windows 10安装Python 2.7和MySQL-python

1. 安装Python

2. 安装MySQL-python

pip install wheel (应该是可选)

pip install mysqlclient==1.3.6

3. 可能出错

running build_ext

building '_mysql' extension

error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27

Command "c:python27python.exe -u -c "import setuptools, tokenize;__file__='c:\users\user\appdata\local\temp\pip-build-fqbeva\mysqlclient\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:usersuserappdatalocaltemppip-bjcknv-recordinstall-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:usersuserappdatalocaltemppip-build-fqbevamysqlclient

安装mysqlclient不指定版本号可能会出错,需要指定为mysqlclient==1.3.6

内容来源于网络,如有侵权请联系客服删除

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。