![]() ![]() When the outcome is displayed, look for this sentence. If you are wondering why it is necessary to set those specific variables, take a look in the docs of the package via brew info command: brew info openssl I proceed to install the following libraries by brewcommand:Įxport LDFLAGS="-L/opt/homebrew/opt/libpq/lib CPPFLAGS="-I/opt/homebrew/opt/libpq/include Proceed to install the python package psycopg2-binary via pip3:.On my scenario, it was performed on: ProductName: macOS I'm still not sure what was the root cause of the problem, it just appeared suddenly when I tried to reinstall pipenv for my project (maybe some recent system updates). Hopefully you can now install psycopg2: pip3 install psycopg2-binary ![]() Paste the following lines at the end (or change these commands accordingly to the Caveats you've got), just keep in mind that OpenSSL provided by Homebrew might conflict with the system's one (I've got a warning that macOS provides LibreSSL) but it worked well anyway: export the file and exit by pressing ^X and confirming with Yes. Open zshrc or other config file specific to your system: nano ~/.zshrc Well, tons of different options didn't work for me, but finally!Īt the end of the reinstallation process you will get basically the following lines within Caveats section, which I've put in the zshrc config file since I use macOS Big Sur (version 11.1) and zsh terminal. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |