吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 1591|回复: 7
收起左侧

[求助] python这几个包怎么安装不了?

  [复制链接]
lizy169 发表于 2022-9-11 23:26
import dask.dataframe as ddpip install dask

import mars.dataframe as mdpip install pymars
import datatable as dtpip install datatable
是我安装方法错了吗?

Collecting datatable
  Using cached datatable-1.0.0.tar.gz (1.1 MB)
  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 'error'

  error: subprocess-exited-with-error
  
  Preparing metadata (pyproject.toml) did not run successfully.
  exit code: 1
  
  [29 lines of output]
  Traceback (most recent call last):
    File "D:\量化\pythonProject\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 156, in prepare_metadata_for_build_wheel
      hook = backend.prepare_metadata_for_build_wheel
  AttributeError: module 'ext' has no attribute 'prepare_metadata_for_build_wheel'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "D:\量化\pythonProject\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
      main()
    File "D:\量化\pythonProject\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "D:\量化\pythonProject\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 160, in prepare_metadata_for_build_wheel
      whl_basename = backend.build_wheel(metadata_directory, config_settings)
    File "C:\Users\lizy1\AppData\Local\Temp\pip-install-esh2jxv7\datatable_f0b35d39f96d4a8f9fbd7966e058f9e3\ci\ext.py", line 573, in build_wheel
      generate_build_info(flavor, strict=not is_source_distribution())
    File "C:\Users\lizy1\AppData\Local\Temp\pip-install-esh2jxv7\datatable_f0b35d39f96d4a8f9fbd7966e058f9e3\ci\ext.py", line 467, in generate_build_info
      git_hash = shell_cmd(["git", "rev-parse", "HEAD"], strict=strict)
    File "C:\Users\lizy1\AppData\Local\Temp\pip-install-esh2jxv7\datatable_f0b35d39f96d4a8f9fbd7966e058f9e3\ci\ext.py", line 437, in shell_cmd
      return subprocess.check_output(cmd, universal_newlines=True,
    File "D:\Python\Python310\lib\subprocess.py", line 420, in check_output
      return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
    File "D:\Python\Python310\lib\subprocess.py", line 501, in run
      with Popen(*popenargs, **kwargs) as process:
    File "D:\Python\Python310\lib\subprocess.py", line 966, in __init__
      self._execute_child(args, executable, preexec_fn, close_fds,
    File "D:\Python\Python310\lib\subprocess.py", line 1435, in _execute_child
      hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
  FileNotFoundError: [WinError 2] 系统找不到指定的文件。
  [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.

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

haoxiaohao 发表于 2022-9-11 23:37
翻译一下不就好了嘛
不是pip的问题,是你安装的这些包本身有问题
 楼主| lizy169 发表于 2022-9-11 23:48
bj9ye666 发表于 2022-9-12 00:07
wihn 发表于 2022-9-12 00:10
看到你的文件路径里有中文,这可能是问题的原因。
bobo2017365 发表于 2022-9-12 01:40
wihn 发表于 2022-9-12 00:10
看到你的文件路径里有中文,这可能是问题的原因。

同感,直接用原Python包吧,不要用venv虚拟环境了
leadjrs 发表于 2022-9-12 10:02
换个python版本试一下 最好可以看一下你要安装的那3个包最高支持到哪个python版本
hrpzcf 发表于 2022-9-12 11:08
应该是你使用的虚拟环境某些文件被删了,把原来的虚拟环境删了建新的
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-11-25 07:46

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表