在虚拟环境中使用cmd下载apache-superset时出现这个错误是什么?

问题描述 投票:0回答:1

我有关于下载 apache-superset 的问题。我使用虚拟环境来安装apache-spark。我的Python版本是3.12.0

>pip install apache-superset
Collecting apache-superset
  Using cached apache-superset-3.0.2.tar.gz (48.1 MB)
  Preparing metadata (setup.py) ... done
Collecting backoff>=1.8.0 (from apache-superset)
  Using cached backoff-2.2.1-py3-none-any.whl (15 kB)
Collecting celery<6.0.0,>=5.2.2 (from apache-superset)
  Using cached celery-5.3.6-py3-none-any.whl.metadata (21 kB)
Collecting click>=8.0.3 (from apache-superset)
  Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting click-option-group (from apache-superset)
  Using cached click_option_group-0.5.6-py3-none-any.whl.metadata (8.3 kB)
Collecting colorama (from apache-superset)
  Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting croniter>=0.3.28 (from apache-superset)
  Using cached croniter-2.0.1-py2.py3-none-any.whl.metadata (24 kB)
Collecting cron-descriptor (from apache-superset)
  Using cached cron_descriptor-1.4.0.tar.gz (29 kB)
  Preparing metadata (setup.py) ... done
Collecting cryptography<40,>=39.0.1 (from apache-superset)
  Using cached cryptography-39.0.2-cp36-abi3-win_amd64.whl (2.5 MB)
Collecting deprecation<2.2.0,>=2.1.0 (from apache-superset)
  Using cached deprecation-2.1.0-py2.py3-none-any.whl (11 kB)
Collecting flask<3.0.0,>=2.2.5 (from apache-superset)
  Using cached flask-2.3.3-py3-none-any.whl.metadata (3.6 kB)
Collecting flask-appbuilder<5.0.0,>=4.3.10 (from apache-superset)
  Using cached Flask_AppBuilder-4.3.10-py3-none-any.whl.metadata (8.9 kB)
Collecting flask-caching<3,>=2.1.0 (from apache-superset)
  Using cached Flask_Caching-2.1.0-py3-none-any.whl.metadata (2.2 kB)
Collecting flask-compress<2.0,>=1.13 (from apache-superset)
  Using cached Flask_Compress-1.14-py3-none-any.whl.metadata (7.8 kB)
Collecting flask-talisman<2.0,>=1.0.0 (from apache-superset)
  Using cached flask_talisman-1.1.0-py2.py3-none-any.whl.metadata (18 kB)
Collecting flask-login<1.0,>=0.6.0 (from apache-superset)
  Using cached Flask_Login-0.6.3-py3-none-any.whl.metadata (5.8 kB)
Collecting flask-migrate<4.0,>=3.1.0 (from apache-superset)
  Using cached Flask_Migrate-3.1.0-py3-none-any.whl (20 kB)
Collecting flask-wtf<2.0,>=1.1.0 (from apache-superset)
  Using cached flask_wtf-1.2.1-py3-none-any.whl.metadata (3.4 kB)
Collecting func_timeout (from apache-superset)
  Using cached func_timeout-4.3.5.tar.gz (44 kB)
  Preparing metadata (setup.py) ... done
Collecting geopy (from apache-superset)
  Using cached geopy-2.4.1-py3-none-any.whl.metadata (6.8 kB)
Collecting hashids<2,>=1.3.1 (from apache-superset)
  Using cached hashids-1.3.1-py2.py3-none-any.whl (6.6 kB)
Collecting holidays<0.24,>=0.23 (from apache-superset)
  Using cached holidays-0.23-py3-none-any.whl (485 kB)
Collecting humanize (from apache-superset)
  Using cached humanize-4.9.0-py3-none-any.whl.metadata (7.9 kB)
Collecting importlib_metadata (from apache-superset)
  Using cached importlib_metadata-7.0.0-py3-none-any.whl.metadata (4.9 kB)
Collecting isodate (from apache-superset)
  Using cached isodate-0.6.1-py2.py3-none-any.whl (41 kB)
Collecting Mako>=1.2.2 (from apache-superset)
  Using cached Mako-1.3.0-py3-none-any.whl.metadata (2.9 kB)
Collecting markdown>=3.0 (from apache-superset)
  Using cached Markdown-3.5.1-py3-none-any.whl.metadata (7.1 kB)
Collecting msgpack<1.1,>=1.0.0 (from apache-superset)
  Using cached msgpack-1.0.7-cp312-cp312-win_amd64.whl.metadata (9.4 kB)
Collecting nh3<0.3,>=0.2.11 (from apache-superset)
  Using cached nh3-0.2.15-cp37-abi3-win_amd64.whl.metadata (1.8 kB)
Collecting numpy==1.23.5 (from apache-superset)
  Using cached numpy-1.23.5.tar.gz (10.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [33 lines of output]
      Traceback (most recent call last):
        File "C:\Users\Kayleen\testing_apache\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "C:\Users\Kayleen\testing_apache\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Kayleen\testing_apache\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 112, in get_requires_for_build_wheel
          backend = _build_backend()
                    ^^^^^^^^^^^^^^^^
        File "C:\Users\Kayleen\testing_apache\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 77, in _build_backend
          obj = import_module(mod_path)
                ^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Kayleen\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", line 90, in import_module
          return _bootstrap._gcd_import(name[level:], package, level)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "<frozen importlib._bootstrap>", line 1381, in _gcd_import
        File "<frozen importlib._bootstrap>", line 1354, in _find_and_load
        File "<frozen importlib._bootstrap>", line 1304, in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
        File "<frozen importlib._bootstrap>", line 1381, in _gcd_import
        File "<frozen importlib._bootstrap>", line 1354, in _find_and_load
        File "<frozen importlib._bootstrap>", line 1325, in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 929, in _load_unlocked
        File "<frozen importlib._bootstrap_external>", line 994, in exec_module
        File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
        File "C:\Users\Kayleen\AppData\Local\Temp\pip-build-env-6ihq1sxh\overlay\Lib\site-packages\setuptools\__init__.py", line 16, in <module>
          import setuptools.version
        File "C:\Users\Kayleen\AppData\Local\Temp\pip-build-env-6ihq1sxh\overlay\Lib\site-packages\setuptools\version.py", line 1, in <module>
          import pkg_resources
        File "C:\Users\Kayleen\AppData\Local\Temp\pip-build-env-6ihq1sxh\overlay\Lib\site-packages\pkg_resources\__init__.py", line 2172, in <module>
          register_finder(pkgutil.ImpImporter, find_on_path)
                          ^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

我已经下载了python最新版本,即3.12.0,但它仍然无法工作,我也下载了setuptools并将其升级到最新版本。有谁知道如何解决这个问题,以便我可以在不使用 ubuntu 的情况下运行 apache-superset ?那里缺少一些模块,但我不知道如何修复它并尝试下载它,但它仍然无法工作

python virtualenv apache-superset
1个回答
0
投票

目前唯一有效的方法是从 python3.12 降级到更低版本。 我浏览了

apache-superset
的setup.cfg,它只列出了它支持的3个版本的python,分别是版本3.9、3.10、3.11

Metadata-Version: 2.1
Name: apache-superset
Version: 3.1.1
Summary: A modern, enterprise-ready business intelligence web application
Home-page: https://superset.apache.org/
Author: Apache Software Foundation
Author-email: [email protected]
License: Apache License, Version 2.0
Download-URL: https://www.apache.org/dist/superset/3.1.1
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: ~=3.9
© www.soinside.com 2019 - 2024. All rights reserved.