V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
africle
V2EX  ›  Mac Pro

mac 使用 brew 安装时,报错

  •  
  •   africle · 2018-06-26 21:09:49 +08:00 · 20264 次点击
    这是一个创建于 2339 天前的主题,其中的信息可能已经有所发展或是发生改变。

    $ brew install mysql-python

    Error: No available formula with the name "mysql-python" ==> Searching for a previously deleted formula (in the last month)... Error: No previously deleted formula found. ==> Searching for similarly named formulae... ==> Searching local taps... Error: No similarly named formulae found. ==> Searching taps... ==> Searching taps on GitHub... Error: No formulae found in taps

    当用 brew 安装时,出现这个提示,这是怎么会回事啊?求助,谢谢!!

    9 条回复    2021-03-17 22:46:46 +08:00
    ywcjxf1515
        1
    ywcjxf1515  
       2018-06-26 22:28:57 +08:00
    没有这个包。。。
    要用 pip2 安装吧 https://pypi.org/project/MySQL-python/1.2.5/
    ywcjxf1515
        2
    ywcjxf1515  
       2018-06-26 22:30:44 +08:00
    ywcjxf1515
        3
    ywcjxf1515  
       2018-06-26 22:32:57 +08:00
    百度搜(不要吐槽) mysql-python,有个 5 月 31 日的网页( cnblog )
    cctrv
        4
    cctrv  
       2018-06-26 22:37:42 +08:00 via iPhone
    pip uninstall MySQL-python
    brew install mysql
    pip install MySQL-python
    Parallel
        5
    Parallel  
       2018-06-26 22:37:56 +08:00
    $ brew search mysql-python
    ==> Searching local taps...
    ==> Searching taps on GitHub...
    homebrew/cask/mysql-connector-python
    ==> Searching blacklisted, migrated and deleted formulae...
    ywcjxf1515
        6
    ywcjxf1515  
       2018-06-26 22:40:00 +08:00
    https://stackoverflow.com/questions/17599830/installing-mysql-python-on-mac
    作为一个小白 还是不插手了吧 和上面的结论类似
    xiaket
        7
    xiaket  
       2018-06-27 07:07:07 +08:00
    建议回去看下提问的智慧.
    IgniteWhite
        8
    IgniteWhite  
       2018-06-28 22:26:15 +08:00
    Do "brew search" before installing
    winkerwinker
        9
    winkerwinker  
       2021-03-17 22:46:46 +08:00   ❤️ 3
    执行
    rm -rf /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
    brew update
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3414 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 10:48 · PVG 18:48 · LAX 02:48 · JFK 05:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.