各位佬,py3.10 无法安装pandas模块, 帮忙看看

yesorno 25天前 254 v 36.40 2024-09-13

WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.

Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.

To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.

Writing to C:\Users\YH\AppData\Roaming\pip\pip.ini

WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.

Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.

To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.

Writing to C:\Users\YH\AppData\Roaming\pip\pip.ini

Collecting pandas

  Using cached pandas-2.2.2.tar.gz (4.4 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'

ERROR: Exception:

Traceback (most recent call last):

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_internal\cli\base_command.py", line 105, in _run_wrapper

    status = _inner_run()

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_internal\cli\base_command.py", line 96, in _inner_run

    return self.run(options, args)

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_internal\cli\req_command.py", line 67, in wrapper

    return func(self, options, args)

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_internal\commands\install.py", line 379, in run

    requirement_set = resolver.resolve(

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_internal\resolution\resolvelib\resolver.py", line 95, in resolve

    result = self._result = resolver.resolve(

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_vendor\resolvelib\resolvers.py", line 546, in resolve

    state = resolution.resolve(requirements, max_rounds=max_rounds)

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_vendor\resolvelib\resolvers.py", line 397, in resolve

    self._add_to_criteria(self.state.criteria, r, parent=None)

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria

    if not criterion.candidates:

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_vendor\resolvelib\structs.py", line 156, in __bool__

    return bool(self._sequence)

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_internal\resolution\resolvelib\found_candidates.py", line 174, in __bool__

    return any(self)

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_internal\resolution\resolvelib\found_candidates.py", line 162, in <genexpr>

    return (c for c in iterator if id(c) not in self._incompatible_ids)

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_internal\resolution\resolvelib\found_candidates.py", line 53, in _iter_built

    candidate = func()

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_internal\resolution\resolvelib\factory.py", line 186, in _make_candidate_from_link

    base: Optional[BaseCandidate] = self._make_base_candidate_from_link(

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_internal\resolution\resolvelib\factory.py", line 232, in _make_base_candidate_from_link

    self._link_candidate_cache[link] = LinkCandidate(

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_internal\resolution\resolvelib\candidates.py", line 303, in __init__

    super().__init__(

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_internal\resolution\resolvelib\candidates.py", line 158, in __init__

    self.dist = self._prepare()

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_internal\resolution\resolvelib\candidates.py", line 235, in _prepare

    dist = self._prepare_distribution()

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_internal\resolution\resolvelib\candidates.py", line 314, in _prepare_distribution

    return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_internal\operations\prepare.py", line 527, in prepare_linked_requirement

    return self._prepare_linked_requirement(req, parallel_builds)

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_internal\operations\prepare.py", line 642, in _prepare_linked_requirement

    dist = _get_prepared_distribution(

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_internal\operations\prepare.py", line 72, in _get_prepared_distribution

    abstract_dist.prepare_distribution_metadata(

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_internal\distributions\sdist.py", line 56, in prepare_distribution_metadata

    self._install_build_reqs(finder)

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_internal\distributions\sdist.py", line 126, in _install_build_reqs

    build_reqs = self._get_build_requires_wheel()

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_internal\distributions\sdist.py", line 103, in _get_build_requires_wheel

    return backend.get_requires_for_build_wheel()

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_internal\utils\misc.py", line 706, in get_requires_for_build_wheel

    return super().get_requires_for_build_wheel(config_settings=cs)

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_vendor\pyproject_hooks\_impl.py", line 166, in get_requires_for_build_wheel

    return self._call_hook('get_requires_for_build_wheel', {

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_vendor\pyproject_hooks\_impl.py", line 321, in _call_hook

    raise BackendUnavailable(data.get('traceback', ''))

pip._vendor.pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):

  File "D:\aardio\lib\process\python\.res\3.10.1-win32\pip\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 77, in _build_backend

    obj = import_module(mod_path)

  File "importlib\__init__.py", line 126, in import_module

  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import

  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load

  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked

ModuleNotFoundError: No module named 'mesonpy'


请按任意键继续 ...

直接复制本机环境的pandas安装包到py文件夹也会报错.   本机跟py3.10确定是同个版本.

单独安装meson mesonpy模块也一样报错,,,,aardio为啥这么多莫名其妙的问题呢

最新回复 (2)
  • yesorno 25天前
    0 2

    默认是32位,  怎么切换到64位啊

  • Xmzzz 21天前
    0 3
    范例:调用其他语言 ) Python 语言 ) Python 任意版本
返回