在R 4.2上安装Spacyr的问题
我在R 4.2版上安装Spacyr时遇到了麻烦。奇怪的是,我过去使用过此包装。安装非常基本。根据他们的网站,您要执行以下操作:
install.packages("spacyr")
library("spacyr")
spacy_install()
但是,当我运行spacy_install()
时,我会获取错误:错误:一个或多个Python软件包无法安装[错误代码1]
有了追溯:
5.
stop(sprintf(fmt, ...), call. = call.)
4.
stopf(fmt, result)
3.
reticulate::conda_install(envname, packages, pip = pip, conda = conda)
2.
process_spacy_installation_conda(conda, version, lang_models,
python_version, prompt, envname = envname, pip = pip)
1.
spacy_install()
我尝试卸载和重新安装Spacyr。
I am having trouble installing spacyr on R version 4.2. What is strange is that I've used this package in the past just fine. The installation is pretty basic. Per their site you do the following:
install.packages("spacyr")
library("spacyr")
spacy_install()
However, when I run spacy_install()
I get the error: Error: one or more Python packages failed to install [error code 1]
with the traceback:
5.
stop(sprintf(fmt, ...), call. = call.)
4.
stopf(fmt, result)
3.
reticulate::conda_install(envname, packages, pip = pip, conda = conda)
2.
process_spacy_installation_conda(conda, version, lang_models,
python_version, prompt, envname = envname, pip = pip)
1.
spacy_install()
I've tried uninstalling and reinstalling spacyr.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我解决了问题:
我尝试了更多的事情,例如
install_miniconda()
(请参阅以下代码块),但我仍然无法使用Spacy。
我在主目录中删除了我的Miniconda文件夹,然后运行上述代码,并且能够使用Spacy。
I solved my problem:
I tried more things like
install_miniconda()
(see the following code block)But I was still unable to use spaCy.
I deleted my miniconda folder in my home directory and then ran the above code and I was able to use spaCy.