![]() Add Homebrew to your PATH in /Users/code2care/.zprofile:Įcho 'eval $(/opt/homebrew/bin/brew shellenv)' > /Users/code2care/.zprofile => Homebrew is run entirely by unpaid volunteers. No analytics data has been sent yet (or will be during this `install` run). ![]() Read the analytics documentation (and how to opt-out) here: => Homebrew has enabled anonymous aggregate formulae and cask analytics. Warning: /opt/homebrew/bin is not in your PATH. HEAD is now at f1b2a2e9b3 ffmpeg: update 4.3.1_9 bottle. Remote: Compressing objects: 100% (26/26), done. HEAD is now at 3bcd919a7 Merge pull request #10578 Press RETURN to continue or any other key to abort => The Xcode Command Line Tools will be installed. => The following new directories will be created: opt/homebrew/share/zsh/site-functions/_brew Happening OSX does not have the connection library by default.Installing homebrew M1 Mac / % /bin/bash -c "$(curl -fsSL )" If you are on linux, you can install these via the instructions at the mysqlclient github page. ![]() An easy way to do this on a Mac is to run brew install mysql-connector-c Note: you will need the mysql-developer tools installed. This library talks to the MySQL client's C-interface, and is faster than the pure-python pymysql libray. It is a fork of mysql-python ( also known as MySQLdb) that supports Python 3+ pip install MySQL-pythonįor Python 3+ the mysql-python library is broken. Install mysql via homebrew, then you can install mysql python via pip. pymysql can be slower than MySQLdb but you'll have to see if you notice that, it is also under a different license (MIT for pymysql, GPL for MySQLdb) pymysql follows the same API as MySQLdb, it can essentially be used as a drop in replacement.Īlso, it used to be that MySQLdb, did not work with Python 3, but this may have changed, pymysql didn't have that problem which also induced me to switch, this may have changed though.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |