I tried to “pip3 install mysqlclient”, on terminal it said:
1 | ERROR: Command errored out with exit status 1: |
checked the GitHub, seem that there are some required prerequisites for mysqlclient?
1 | brew install mysql-client |
Unfortunately, after setting the system env variables, it still went with:
1 | ld: library not found for -lssl |
Tried with this:
1 | brew install openssl |
Finally:
1 | env LDFLAGS="-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib" pip3 --no-cache install 'mysqlclient==1.4.6' |
Turns out:
1 | Collecting mysqlclient==1.4.6 |