r - 运行 featuretoolsR 时出现词法错误
问题描述
为了测试 featuretools 的工作,我通过 RStudio 安装了 featuretoolsR,并在 Python 中安装了 numpy 和 featuretools。
但是,在尝试创建实体时出现以下错误
# Libs
library(featuretoolsR)
library(magrittr)
# Create some mock data
set_1 <- data.frame(key = 1:100, value = sample(letters, 100, T))
set_2 <- data.frame(key = 1:100, value = sample(LETTERS, 100, T))
# Create entityset
es <- as_entityset(set_1, index = "key", entity_id = "set_1", id = "demo")```
Error: lexical error: invalid char in json text.
WARNING: The conda.compat modul
(right here) ------^
Kindly help in diagnosing and providing solution to same.
解决方案
更新到 conda 版本 4.6.11 后,同样的警告发生在我身上。我认为问题是由于 compat.py 脚本末尾的 print 语句产生的。我知道这不是一个很好的解决方法,但我访问了 compat.py 文件并删除了打印语句:
print("WARNING: The conda.compat module is deprecated and will be removed in a future release.", file=sys.stderr)
该文件应位于此处:\Anaconda3\pkgs\conda-4.6.11-py37_0\Lib\site-packages\conda
我希望它有所帮助。
推荐阅读
- html - css 选择器如何重用于多个 html 页面?
- swift - 尝试使用 Firebase 重新验证用户时出错
- r - diff time r studio 没有正确给出结果
- python - 'value' 必须是单个 Unicode 代码点
- c# - 如何在 ASP.NET 项目中为 project.assets.json 中的依赖项强制执行最低版本?
- time-complexity - 使用 if/else 的 for 循环的时间复杂度
- snowflake-cloud-data-platform - 如何审核 Snowflake 中的常见用户 ID 使用情况?
- docker - 添加 Jenkins 管道执行的 conda-forge “conda/miniconda3” docker 映像时出现权限错误
- vue.js - 如何在 vue 3 中获取 this 实例?
- mongodb - 如何获取日期范围内的 MongoDB 条目,包括限制?