gmpy2 installation error in vs code in pytho 39

804 Views Asked by At

tried instaliing microsoft visual studio still notinstalled ModuleNotFoundError: No module named 'gmpy2' PS C:\Users\USER\OneDrive\Desktop\sem1\fcs\Assignment 1> pip install gmpy2 Collecting gmpy2 Using cached gmpy2-2.0.8.zip (280 kB) Building wheels for collected packages: gmpy2 Building wheel for gmpy2 (setup.py) ... error

enter image description here

Tried installing gmpy2 but was unable to all errors have been shown here.

1

There are 1 best solutions below

0
casevh On

I'm the maintainer of gmpy2.

Unfortunately, it's rather complicated to build gmpy2 from source. I have published pre-compiled versions for next major release. But they are not chosen by default when you try to install gmpy2. You can install the release candidate with the command:

pip install gmpy2==2.1.0rc1

The command may differ slightly depending on the exact configuration of your system.

Please let us know if you are still getting errors.