(Oct-22-2021, 12:17 AM)Pedroski55 Wrote: Thanks for your replies!
I use Ubuntu 20.04
I only tried to install gmpy2 using pip.
I'm not very clear about installing from source, I never do that, but I suppose I will have to try!
I happen to be the maintainer of gmpy2. I'm sorry that you have issues installing gmpy2. Here are my recommendations.
If you are using a version of Python provided by a Linux distribution, I recommend installing the version of gmpy2 provided by that distribution. For Ubuntu you can use a GUI tool like "synaptic" or use the following command from the Linux command prompt:
sudo apt install python3-gmpy2
Installing from PyPi using pip is unfortunately not as easy as it should be. The last "official" release was version 2.0.8. Since then, I've released several alpha, beta, and release candidate versions of 2.1.0, but pip will only offer official releases and hides the existence of development versions. You can force pip to provide development versions using the following command:
pip install --pre gmpy2
Installing from source is relatively easy on Linux. But I would only do this both of the previous options fail. gmpy2 requires the development files for GMP (provides mpz and mpq), MPFR (provides mpfr), and MPC (provides mpc). The easiest way to install the required files is the following command:
sudo apt install libmpc-dev
Then try compiling from source with the command:
pip install --pre --no-binary :all: gmpy2
I hope this helps.
Case
p.s. My first multiple precision calculation was calculating
e to 3,110 decimal places on an HP41-CV calculator. It took 5 days. My effort was inspired by article in Byte magazine written by Steve Wozniak.
https://downloads.reactivemicro.com/User...201981.pdf