为什么python 3.13安装pyradiomics总是失败,试了各种方法都不行。镜像网站试了,aconda也试了,就是不知道哪错了问题。
这是报错信息:
Collecting pyradiomics
Using cached pyradiomics-3.1.0.tar.gz (34.5 MB)
Installing build dependencies: started
Installing build dependencies: finished with status ‘done’
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status ‘done’
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status ‘done’
Discarding https://files.pythonhosted.org/packages/03/c1/20fc2c50ab1e3304da36d866042a1905a2b05a1431ece35448ab6b4578f2/pyradiomics-3.1.0.tar.gz (from https://pypi.org/simple/pyradiomics/): Requested pyradiomics from https://files.pythonhosted.org/packages/03/c1/20fc2c50ab1e3304da36d866042a1905a2b05a1431ece35448ab6b4578f2/pyradiomics-3.1.0.tar.gz has inconsistent version: expected ‘3.1.0’, but metadata has ‘3.0.1a1’
Using cached pyradiomics-3.0.1.tar.gz (34.5 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status ‘error’
error: subprocess-exited-with-error
python setup.py egg_info did not run successfully.
exit code: 1
[38 lines of output]
D:\WibdowsTEMP\TEMP\pip-install-1er79fv_\pyradiomics_49c7d097d5ea49e7ab87a047294d08d2\setup.py:9: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
!!
********************************************************************************
Please remove any references to `setuptools.command.test` in all supported versions of the affected package.
This deprecation is overdue, please update your project and remove deprecated
calls to avoid build errors in the future.
********************************************************************************
!!
from setuptools.command.test import test as TestCommand
D:\WibdowsTEMP\TEMP\pip-install-1er79fv_\pyradiomics_49c7d097d5ea49e7ab87a047294d08d2\versioneer.py:418: SyntaxWarning: invalid escape sequence ‘\s’
LONG_VERSION_PY[‘git’] = ‘’’
Traceback (most recent call last):
File “”, line 2, in
exec(compile(‘’’
~~~~^^^^^^^^^^^^
# This is – a caller that pip uses to run setup.py
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
…<31 lines>…
exec(compile(setup_py_code, filename, “exec”))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
‘’’ % (‘D:\WibdowsTEMP\TEMP\pip-install-1er79fv_\pyradiomics_49c7d097d5ea49e7ab87a047294d08d2\setup.py’,), “”, “exec”))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 34, in
File “D:\WibdowsTEMP\TEMP\pip-install-1er79fv_\pyradiomics_49c7d097d5ea49e7ab87a047294d08d2\setup.py”, line 79, in
version=versioneer.get_version(),
~~~~~~~~~~~~~~~~~~~~~~^^
File “D:\WibdowsTEMP\TEMP\pip-install-1er79fv_\pyradiomics_49c7d097d5ea49e7ab87a047294d08d2\versioneer.py”, line 1476, in get_version
return get_versions()[“version”]
~~~~~~~~~~~~^^
File “D:\WibdowsTEMP\TEMP\pip-install-1er79fv_\pyradiomics_49c7d097d5ea49e7ab87a047294d08d2\versioneer.py”, line 1408, in get_versions
cfg = get_config_from_root(root)
File “D:\WibdowsTEMP\TEMP\pip-install-1er79fv_\pyradiomics_49c7d097d5ea49e7ab87a047294d08d2\versioneer.py”, line 342, in get_config_from_root
parser = configparser.SafeConfigParser()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module ‘configparser’ has no attribute ‘SafeConfigParser’. Did you mean: ‘RawConfigParser’?
[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.
hint: See above for details.