我有sagemath 9.8,python 3.11.3和Cython 0.29.35都安装在一台装有manjaro linux的机器上。我按照模块的Github存储库中提供的说明进行操作,但遇到了错误。
上面有说明,但似乎没有一个对我有用。
从存储库安装时出现以下错误:
Collecting git+https://github.com/abelfunctions/abelfunctions
Cloning https://github.com/abelfunctions/abelfunctions to /tmp/pip-req-build-gmb8qyot
Running command git clone --filter=blob:none --quiet https://github.com/abelfunctions/abelfunctions /tmp/pip-req-build-gmb8qyot
Resolved https://github.com/abelfunctions/abelfunctions to commit efaf57ba61b2168adca17184d4f0836655c1138b
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-req-build-gmb8qyot/setup.py", line 26, in <module>
from Cython.Build import cythonize
ModuleNotFoundError: No module named 'Cython'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
下载存储库并使用sage setup.py install
手动安装会导致
Traceback (most recent call last):
File "/home/mypc/Downloads/abelfunctions/setup.py", line 26, in <module>
from Cython.Build import cythonize
ModuleNotFoundError: No module named 'Cython'
似乎软件包安装无法找到Cython模块。任何帮助将不胜感激。
1条答案
按热度按时间yrdbyhpb1#
我能够安装abelfunctions如下。
我通过conda安装了SageMath 10.0,如下
然后在一个终端我跑