Skip to content

Instantly share code, notes, and snippets.

@r0lodex
Created June 12, 2021 05:22
Show Gist options
  • Save r0lodex/8e7673f0e3763c8cf0c752c91ac472cb to your computer and use it in GitHub Desktop.
Save r0lodex/8e7673f0e3763c8cf0c752c91ac472cb to your computer and use it in GitHub Desktop.
Solving MacOS 12.0 Beta pip install

I encountered these errors:

  • ERROR: Failed building wheel for cryptography
  • Could not build wheels for cryptography which use PEP 517
  • Using legacy 'setup.py install' for cffi, since package 'wheel' is not installed.

And solved it by updating the LDSFLAGS and CFLAGS before installing any package since I'm under macOS Monterey 12.0 Beta.

env LDFLAGS="-L$(brew --prefix [email protected])/lib" CFLAGS="-I$(brew --prefix [email protected])/include" pip install <package>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment