请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

正在回答 回答被采纳积分+3

1回答

bobby 2017-09-29 09:49:22

brew install mysql
pip install MySQL-python

试试运行这两个命令

0 回复 有任何疑惑可以回复我~
  • 提问者 楼上老王__ #1
    bogon:djangostart wgy$ brew install mysql
    Updating Homebrew...
    ==> Auto-updated Homebrew!
    Updated 2 taps (caskroom/cask, homebrew/core).
    ==> New Formulae
    libbitcoin-server
    ==> Updated Formulae
    s-nail                                                         tarantool                                                      testssl
    
    Error: Could not link:
    /usr/local/share/doc/homebrew
    
    Please delete these paths and run `brew update`.
    Error: Cannot install mysql because conflicting formulae are installed.
      mysql-connector-c: because both install MySQL client libraries
    
    Please `brew unlink mysql-connector-c` before continuing.
    
    Unlinking removes a formula's symlinks from /usr/local. You can
    link the formula again after the install finishes. You can --force this
    install, but the build may fail or cause obscure side-effects in the
    resulting software.
    bogon:djangostart wgy$ pip install MySQL-python
    Collecting MySQL-python
      Using cached MySQL-python-1.2.5.zip
        Complete output from command python setup.py egg_info:
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File 
    本地python 2.7和3.6.2两个版本,感觉是冲突了,不知道怎么解决
    回复 有任何疑惑可以回复我~ 2017-09-29 10:10:50
  • bobby 回复 提问者 楼上老王__ #2
    再运行一个命令 xcode-select --install 然后再重新安装试试 可以参考这个问答里面的我的评论 http://coding.imooc.com/learn/questiondetail/23861.html
    回复 有任何疑惑可以回复我~ 2017-09-30 14:37:14
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信