如何在Pythonanywhere上安装GNU MPFR库



我正在尝试安装bigfloat,并且我收到的消息似乎表明我首先需要mpfr库。我该怎么做?
消息:

运行build_ext building'mpfr'扩展名创建构建/temp.linux -x86_64-2.7 x86_64 -linux -gnu -gcc -pthread -fno -strict -aliasing -dndebug -g -g -fwrapv -fwrapv -o2 -o2 -wall -wstrict -wstrict -wstrict -wtrict -prototypes---fpic -i/usr/include/python2.7 -c mpfr。C -O构建/temp.linux-x86_64-2.7/mpfr.o mpfr.c:344:18:致命错误:mpfr.h:没有这样的文件或目录#include #include" mpfr.h" ^汇编终止。错误:命令'x86_64-linux-gnu-gcc'失败,退出状态1

我是Python和Pythonanywhere的新手,所以我不知道如何安装库。

我试图找到如何使用Google安装库,然后尝试使用:

pip install --user mpfr 

但是我收到此错误消息:

收集MPFR找不到满足需求MPFR的版本(来自版本:)未找到MPFR的匹配分布

gmpy2用C编写,取决于其他三个C库:GMP,MPFR和MPC。确保存在所有依赖关系的最简单方法是使用Linux分发中的标准软件包管理工具" LibMPC-DEV"。例如:

sudo apt-get install libmpc-dev 

最新更新