weixin_37139825
竹夜枫箫
2017-08-15 03:07

python 虚拟环境下安装mysql驱动 出现问题 求大神帮忙!!!

  • python
  • django
  • mysql

执行pip install mysql-python==1.2.3 时 出现以下情况 找了很多解决方案还是不行
求大神帮忙 谢谢了

(blog_project_venv) E:\Pyworkspace\blog_project_venv\Scripts>pip install mysql-python==1.2.3
Collecting mysql-python==1.2.3
Using cached MySQL-python-1.2.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "c:\users\fch\appdata\local\temp\pip-build-wgkhkr\mysql-python\setup.py", line 15, in
metadata, options = get_config()
File "setup_windows.py", line 7, in get_config
serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options['registry_key'])
WindowsError: [Error 2]

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in c:\users\fch\appdata\local\temp\pip-build-wgkhkr\mysql-python\

这该怎么解决啊

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答