SciKits.umfpack安装



我正在尝试在UBuntu 20.4上安装scikits。Umfpack python包,因为在我的论文中需要它作为网络分析python包的依赖项。

我也使用python 2.7.18,因为我想使用的工具只运行python 2.7。我已经从其他依赖项中安装了numpy, scipy, pyparsing和graphviz,并使用这里的信息成功安装了工具。

当我尝试使用pip命令pip install scikit-umfpack安装umfpack包时,我得到以下错误:

> DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. Collecting scikit-umfpack   Using cached scikit-umfpack-0.3.3.tar.gz (26 kB) Requirement already satisfied, skipping upgrade: numpy>=1.16.6 in /home/mema/.local/lib/python2.7/site-packages (from scikit-umfpack) (1.16.6) Requirement already satisfied, skipping upgrade: scipy>=1.0.0rc1 in /home/mema/.local/lib/python2.7/site-packages (from scikit-umfpack) (1.2.3) Building wheels for collected packages: scikit-umfpack   Building wheel for scikit-umfpack (setup.py) ... error   ERROR: Command errored out with exit status 1:    command: /usr/bin/python2.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-EAQsAc/scikit-umfpack/setup.py'"'"';
__file__='"'"'/tmp/pip-install-EAQsAc/scikit-umfpack/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-UlwZj1
cwd: /tmp/pip-install-EAQsAc/scikit-umfpack/   Complete output (30 lines):   umfpack_info:   customize UnixCCompiler
libraries umfpack not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib']   /home/mema/.local/lib/python2.7/site-packages/numpy/distutils/system_info.py:446: UserWarning:
UMFPACK sparse solver (https://www.cise.ufl.edu/research/sparse/umfpack/)
not found. Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [umfpack]) or by setting
the UMFPACK environment variable.
return cl().get_info(notfound_action)
NOT AVAILABLE
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-EAQsAc/scikit-umfpack/setup.py", line 250, in <module>
setup_package()
File "/tmp/pip-install-EAQsAc/scikit-umfpack/setup.py", line 247, in setup_package
setup(**metadata)
File "/home/mema/.local/lib/python2.7/site-packages/numpy/distutils/core.py", line 137, in setup
config = configuration()
File "/tmp/pip-install-EAQsAc/scikit-umfpack/setup.py", line 143, in configuration
config.add_subpackage('scikits.umfpack')
File "/home/mema/.local/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 1036, in add_subpackage
caller_level = 2)
File "/home/mema/.local/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 1005, in get_subpackage
caller_level = caller_level + 1)
File "/home/mema/.local/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 942, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scikits/umfpack/setup.py", line 19, in configuration
umf_info['libraries'].insert(0, 'rt')   KeyError: 'libraries'   ----------------------------------------   ERROR: Failed building wheel for scikit-umfpack   Running setup.py clean for scikit-umfpack Failed to build scikit-umfpack Installing collected packages: scikit-umfpack
Running setup.py install for scikit-umfpack ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python2.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-EAQsAc/scikit-umfpack/setup.py'"'"';
__file__='"'"'/tmp/pip-install-EAQsAc/scikit-umfpack/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-T0Fq3b/install-record.txt
--single-version-externally-managed --user --prefix= --compile --install-headers /home/mema/.local/include/python2.7/scikit-umfpack
cwd: /tmp/pip-install-EAQsAc/scikit-umfpack/
Complete output (30 lines):
umfpack_info:
customize UnixCCompiler
libraries umfpack not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib']
/home/mema/.local/lib/python2.7/site-packages/numpy/distutils/system_info.py:446: UserWarning:
UMFPACK sparse solver (https://www.cise.ufl.edu/research/sparse/umfpack/)
not found. Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [umfpack]) or by setting
the UMFPACK environment variable.
return cl().get_info(notfound_action)
NOT AVAILABLE

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-EAQsAc/scikit-umfpack/setup.py", line 250, in <module>
setup_package()
File "/tmp/pip-install-EAQsAc/scikit-umfpack/setup.py", line 247, in setup_package
setup(**metadata)
File "/home/mema/.local/lib/python2.7/site-packages/numpy/distutils/core.py", line 137, in setup
config = configuration()
File "/tmp/pip-install-EAQsAc/scikit-umfpack/setup.py", line 143, in configuration
config.add_subpackage('scikits.umfpack')
File "/home/mema/.local/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 1036, in add_subpackage
caller_level = 2)
File "/home/mema/.local/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 1005, in get_subpackage
caller_level = caller_level + 1)
File "/home/mema/.local/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 942, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scikits/umfpack/setup.py", line 19, in configuration
umf_info['libraries'].insert(0, 'rt')
KeyError: 'libraries'
---------------------------------------- ERROR: Command errored out with exit status 1: /usr/bin/python2.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-EAQsAc/scikit-umfpack/setup.py'"'"';
__file__='"'"'/tmp/pip-install-EAQsAc/scikit-umfpack/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-T0Fq3b/install-record.txt
--single-version-externally-managed --user --prefix= --compile --install-headers /home/mema/.local/include/python2.7/scikit-umfpack Check the logs for full command output.

注意:我已经在windows上尝试过了,我也得到了错误。此外,我也尝试过克隆repo,尝试过PYcharm、ANaconda、suitespasre和C开发工具,但都没有成功。显然是我做错了什么!

请帮帮我,我已经被困了好几个月了

我不知道为什么。但是我有一个类似的问题,唯一的解决方案是先在visual studio 2022中安装它:首先我安装了wheel,然后是scikit-umfpack。

然后我返回到visual studio代码,我可以正确地安装它。

相关内容

  • 没有找到相关文章

最新更新