macOS Catalina 10.15.5
pipenv 2020.6.2
Homebrew 2.4.3
Lorsque j'ai essayé d'installer mysqlclient, j'ai reçu un long message d'erreur et je n'ai pas pu l'installer.
$ pipenv install mysqlclient==1.4.6
.
.
.
ERROR: Couldn't install package: mysqlclient
Installez mysql-connector-c
$ brew install mysql-connector-c
Afficher les informations sur le package openssl
$ brew info openssl
[email protected]: stable 1.1.1g (bottled) [keg-only]
Cryptography and SSL/TLS Toolkit
https://openssl.org/
/usr/local/Cellar/[email protected]/1.1.1g (8,059 files, 18MB)
Poured from bottle on 2020-05-03 at 16:19:23
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/[email protected]
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/usr/local/etc/[email protected]/certs
and run
/usr/local/opt/[email protected]/bin/c_rehash
[email protected] is keg-only, which means it was not symlinked into /usr/local,
because macOS provides LibreSSL.
If you need to have [email protected] first in your PATH run:
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> /Users/Votre répertoire personnel/.bash_profile
For compilers to find [email protected] you may need to set:
export LDFLAGS="-L/usr/local/opt/[email protected]/lib"
export CPPFLAGS="-I/usr/local/opt/[email protected]/include"
For pkg-config to find [email protected] you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/[email protected]/lib/pkgconfig"
==> Analytics
install: 583,299 (30 days), 2,291,367 (90 days), 6,244,922 (365 days)
install-on-request: 72,656 (30 days), 337,989 (90 days), 825,813 (365 days)
build-error: 0 (30 days)
Exécutez les trois suivants affichés par la commande ci-dessus
$ echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> /Users/Votre répertoire personnel/.bash_profile
$ export LDFLAGS="-L/usr/local/opt/[email protected]/lib"
$ export CPPFLAGS="-I/usr/local/opt/[email protected]/include"
https://stackoverflow.com/questions/35190465/virtualenvpython3-4-pip-install-mysqlclient-error
Recommended Posts