lizy169 发表于 2022-9-11 23:26

python这几个包怎么安装不了?

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


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: 系统找不到指定的文件。


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

应该是你使用的虚拟环境某些文件被删了,把原来的虚拟环境删了建新的
页: [1]
查看完整版本: python这几个包怎么安装不了?