Skip to content

Instantly share code, notes, and snippets.

@XiaochenCui
Created August 12, 2018 08:23
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save XiaochenCui/081e4386bea3a4a428b87ff7e0532b1b to your computer and use it in GitHub Desktop.
Save XiaochenCui/081e4386bea3a4a428b87ff7e0532b1b to your computer and use it in GitHub Desktop.
Install gmpy2 in Mac
brew install gmp
brew install mpfr
brew install libmpc
pip install gmpy2
@YukiGibson
Copy link

Still working, thanks!

@9host1st
Copy link

Still working!

@DashanGao
Copy link

It works!!!

@tanjuntao
Copy link

Still working on my macOS Catalina 10.15.7, thank you!!!

@danielfalbo
Copy link

Still working on Big Sur 😍🙏

@ZoeLiao
Copy link

ZoeLiao commented Sep 23, 2021

Still working on Mac with Python 3.8. Thanks!

@pinkspace46
Copy link

still working on macOS Big Sur 11.6, thanks

@avi-arora
Copy link

Not working for me, Please help.
showing the following error, "fatal error: 'gmp.h' file not found:

PFA.
Screenshot 2021-10-17 at 5 42 32 PM

@avi-arora
Copy link

Problem resolved,

soln: check for homebrew path.

i do need to add the path manually
like this: pip3 install --global-option=build_ext --global-option="-I/opt/homebrew/include/" --global-option="-L/opt/homebrew/lib/" gmpy2

@kangkang333
Copy link

It works~thanks

@kangkang333
Copy link

Python 3.6.0
Could not find a version that satisfies the requirement gmpy2 (from versions: ) No matching distribution found for gmpy2

@kangkang333
Copy link

Python 3.6.0 Could not find a version that satisfies the requirement gmpy2 (from versions: ) No matching distribution found for gmpy2

Python 3.8.1 works

@shashankrustagi
Copy link

it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment