gpt4 book ai didi

Getting the error message 'Getting requirements to build wheel did not run successfully.' when trying to install rpy2(收到错误消息“Geting Requirements to Build Ware Not Success Run”。尝试安装rpy2时)

转载 作者:bug小助手 更新时间:2023-10-26 20:55:14 29 4
gpt4 key购买 nike



Running the command pip install rpy2 results in the following output and error message:

运行命令pip install rpy2会导致以下输出和错误消息:


Collecting rpy2
Using cached rpy2-3.5.12.tar.gz (217 kB)
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
╰─> [28 lines of output]
Traceback (most recent call last):
File "c:\users\97254\working_project\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "c:\users\97254\working_project\venv\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\97254\working_project\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\97254\AppData\Local\Temp\pip-build-env-b21o8iu5\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "C:\Users\97254\AppData\Local\Temp\pip-build-env-b21o8iu5\overlay\Lib\site-packages\setuptools\build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "C:\Users\97254\AppData\Local\Temp\pip-build-env-b21o8iu5\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup
exec(code, locals())
File "<string>", line 124, in <module>
File "<string>", line 110, in get_r_c_extension_status
File "./rpy2/situation.py", line 295, in get_r_flags
_get_r_cmd_config(r_home, flags,
File "./rpy2/situation.py", line 255, in _get_r_cmd_config
output = subprocess.check_output(
File "C:\Users\97254\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Users\97254\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\97254\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 947, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\97254\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1416, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
[end of output]

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

I uninstalled and reinstalled R and associated directories according to directions on another Stackoverflow post, and got the same error. I also tried installing a previous version of rpy2 and got the same error.

我按照另一篇Stackoverflow帖子上的说明卸载并重新安装了R和相关目录,但得到了相同的错误。我还尝试安装以前版本的rpy2,得到相同的错误。


If anyone has an idea how to resolve this error I'd be glad to get it.

Thanks.

如果有人知道如何解决这个错误,我将很高兴得到它。谢谢。


更多回答
优秀答案推荐

try

尝试


pip install wheel

or install rpy2 from github repo instead of PIP

或者从GitHub资源库安装rpy2,而不是PIP



Eventually I downloaded a zip file of rpy2 from rpy2's GitHub page, unzipped and placed it in the python project's site-packages, which enabled using the package.

最后,我从Rpy2的S GitHub页面下载了一个rpy2的压缩文件,将其解压并放入了python项目的站点包中,该包启用了该包。



I did this as some one said above ..
pip3 install wheel setuptools pip --upgrade

我是按照上面有人说的那样做的..PIP3安装轮安装工具PIP--升级


then it told me I had to install by specific use eg ..
pip3 install azure-identity
as pip install azure was deprecated .

然后它告诉我必须按特定用途安装。PIP3Install Azure-作为PIP Install Azure的身份被弃用。


see https://azure.github.io/azure-sdk/releases/latest/all/python.html

请参阅https://azure.github.io/azure-sdk/releases/latest/all/python.html


更多回答

I already have it installed. I uninstalled and reinstalled it and got the same error when trying to install rpy2.

我已经安装好了。我重新安装了它,并得到了同样的错误时,试图安装rpy 2。

pip3 install wheel setuptools pip --upgrade try this

pip 3 install wheel setuptools pip --upgrade试试这个

Still the same error.

仍然是同样的错误。

there is issue raised in Github repo about this .link , Try installing from the Github source rather than pip

在Github repo中出现了有关此.link的问题,请尝试从Github源代码而不是pip进行安装

clone the github repo , and in that repo folder type "python setup.py install"

克隆github repo,并在repo文件夹中输入“python setup.py install”

This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. To get notified when this question gets new answers, you can follow this question. Once you have enough reputation, you can also add a bounty to draw more attention to this question. - From Review

这并没有真正回答这个问题。如果您有不同的问题,可以通过单击提问来提问。要在此问题获得新答案时收到通知,您可以按照此问题进行操作。一旦你有了足够的声誉,你也可以添加赏金来吸引更多的人关注这个问题。-摘自评论

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com